Skip to content

Commit 514a408

Browse files
committed
Added Static directories and Jinja options variable to settings
1 parent 17cce01 commit 514a408

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ellar/core/conf/app_settings_models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ class Config:
6969
DEBUG: bool = False
7070
DEFAULT_JSON_CLASS: t.Type[JSONResponse] = JSONResponse
7171

72-
TEMPLATES_AUTO_RELOAD: t.Optional[bool] = None
72+
JINJA_TEMPLATES_OPTIONS: t.Dict[str, t.Any] = {}
7373
VERSIONING_SCHEME: TVersioning = Field(DefaultAPIVersioning())
7474

7575
REDIRECT_SLASHES: bool = False
7676
STATIC_FOLDER_PACKAGES: t.Optional[t.List[t.Union[str, t.Tuple[str]]]] = []
77+
STATIC_DIRECTORIES: t.Optional[t.List[t.Union[str, t.Any]]] = []
7778

7879
MIDDLEWARE: t.List[TMiddleware] = []
7980
APP_EXCEPTION_HANDLERS: t.Dict[t.Union[int, t.Type[Exception]], t.Callable] = {}

ellar/core/conf/default_settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@
2828
# For more info, read: https://injector.readthedocs.io/en/latest/index.html
2929
INJECTOR_AUTO_BIND = False
3030

31-
TEMPLATES_AUTO_RELOAD: t.Optional[bool] = None
31+
JINJA_TEMPLATES_OPTIONS: t.Dict[str, t.Any] = {}
3232

3333
VERSIONING_SCHEME: BaseAPIVersioning = DefaultAPIVersioning()
3434
REDIRECT_SLASHES: bool = False
3535

3636
STATIC_FOLDER_PACKAGES: t.Optional[t.List[t.Union[str, t.Tuple[str]]]] = []
37+
STATIC_DIRECTORIES: t.Optional[t.List[t.Union[str, t.Any]]] = []
3738
STATIC_MOUNT_PATH: str = "/static"
3839

3940
MIDDLEWARE: t.Sequence[Middleware] = []

0 commit comments

Comments
 (0)