Commit 8f9de536 authored by impfundev's avatar impfundev

feat: init whitenoise

parent 0f47a8ec
...@@ -66,6 +66,8 @@ MIDDLEWARE = [ ...@@ -66,6 +66,8 @@ MIDDLEWARE = [
"django.middleware.clickjacking.XFrameOptionsMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware",
# local # local
"users.middleware.AuthMiddleware", "users.middleware.AuthMiddleware",
# 3rd party
"whitenoise.middleware.WhiteNoiseMiddleware",
] ]
ROOT_URLCONF = "config.urls" ROOT_URLCONF = "config.urls"
...@@ -176,3 +178,9 @@ EMAIL_HOST_PASSWORD = "83VFaB6ZGSzy72D24T" ...@@ -176,3 +178,9 @@ EMAIL_HOST_PASSWORD = "83VFaB6ZGSzy72D24T"
# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field # https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
STORAGES = {
"staticfiles": {
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
},
}
Binary files a/requirements.txt and b/requirements.txt differ Binary files a/requirements.txt and b/requirements.txt differ
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment