Introduce 'STATIC_ROOT_ABS' environment variable
Using 'BASE_DIR' doesn't really make sense in a proper deployment environment.
This commit is contained in:
parent
3ff5b3279c
commit
3f968d4652
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ LOCALE_PATHS = [
|
|||
]
|
||||
LANGUAGE_COOKIE_NAME = env.str("LANGUAGE_COOKIE_NAME", "django_language")
|
||||
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, env("STATIC_ROOT", "static"))
|
||||
STATIC_ROOT = env("STATIC_ROOT_ABS")
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, env("MEDIA_ROOT", "images"))
|
||||
|
||||
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
|
||||
|
|
Loading…
Add table
Reference in a new issue