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),
SESSION_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"]:
@ -114,11 +116,10 @@ TIME_ZONE = "UTC"
USE_I18N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.0/howto/static-files/
STATIC_URL = "static/"
STATIC_URL = env("STATIC_URL")
STATIC_ROOT = env("STATIC_ROOT")
# Default primary key field type
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field