static r00t

This commit is contained in:
Ethan Roseman 2022-11-24 01:59:36 +09:00
parent bf2472fd21
commit 05f2b7a2ef
No known key found for this signature in database
GPG Key ID: 27F9FCEB8E4969BD
1 changed files with 4 additions and 3 deletions

View File

@ -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