1
0
Fork 0

add whitenoise lib to serve statics in production w/o nginx

This commit is contained in:
radex 2023-08-18 13:00:32 +02:00
parent e3229ffd7e
commit ce3f07de5f
2 changed files with 2 additions and 0 deletions

View File

@ -32,3 +32,4 @@ social-auth-core==4.4.2
sqlparse==0.4.4
terminaltables==3.1.10
urllib3==2.0.3
whitenoise==6.5.0

View File

@ -61,6 +61,7 @@ INSTALLED_APPS = [
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"whitenoise.middleware.WhiteNoiseMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",