add whitenoise lib to serve statics in production w/o nginx
This commit is contained in:
parent
e3229ffd7e
commit
ce3f07de5f
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue