added whitenoise

This commit is contained in:
Rushil Umaretiya 2020-10-22 13:27:17 -04:00
parent dfd2fac13c
commit b16b0027c0
2 changed files with 4 additions and 1 deletions

View File

@ -51,6 +51,7 @@ INSTALLED_APPS = [
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
@ -134,4 +135,4 @@ CRISPY_TEMPLATE_PACK = 'bootstrap4'
LOGIN_URL = 'login'
LOGOUT_URL = 'logout'
LOGIN_REDIRECT_URL = 'home'
LOGIN_REDIRECT_URL = 'home'

View File

@ -5,6 +5,7 @@ django-crispy==1.8.1
django-extensions==3.0.9
django-secrets==1.0.2
future==0.18.2
gunicorn==20.0.4
isort==5.6.4
lazy-object-proxy==1.4.3
mccabe==0.6.1
@ -15,4 +16,5 @@ sqlparse==0.4.1
toml==0.10.1
typed-ast==1.4.1
Werkzeug==1.0.1
whitenoise==5.2.0
wrapt==1.12.1