static r00t
This commit is contained in:
parent
bf2472fd21
commit
05f2b7a2ef
|
@ -16,6 +16,8 @@ env = environ.Env(
|
||||||
SECURE_HSTS_PRELOAD=(bool, False),
|
SECURE_HSTS_PRELOAD=(bool, False),
|
||||||
SESSION_COOKIE_SECURE=(bool, True),
|
SESSION_COOKIE_SECURE=(bool, True),
|
||||||
CSRF_COOKIE_SECURE=(bool, True),
|
CSRF_COOKIE_SECURE=(bool, True),
|
||||||
|
STATIC_URL=(str, "/static/"),
|
||||||
|
STATIC_ROOT=(str, BASE_DIR / "static"),
|
||||||
)
|
)
|
||||||
|
|
||||||
for stem in [".env.local", ".env"]:
|
for stem in [".env.local", ".env"]:
|
||||||
|
@ -114,11 +116,10 @@ TIME_ZONE = "UTC"
|
||||||
USE_I18N = True
|
USE_I18N = True
|
||||||
USE_TZ = True
|
USE_TZ = True
|
||||||
|
|
||||||
|
|
||||||
# Static files (CSS, JavaScript, Images)
|
# Static files (CSS, JavaScript, Images)
|
||||||
# https://docs.djangoproject.com/en/4.0/howto/static-files/
|
# https://docs.djangoproject.com/en/4.0/howto/static-files/
|
||||||
|
STATIC_URL = env("STATIC_URL")
|
||||||
STATIC_URL = "static/"
|
STATIC_ROOT = env("STATIC_ROOT")
|
||||||
|
|
||||||
# Default primary key field type
|
# Default primary key field type
|
||||||
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
|
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
|
||||||
|
|
Loading…
Reference in New Issue