Merge pull request #50 from jfmatth/add-whitenoise

Put Whitenoise back in settings.py
This commit is contained in:
Rodolfo Carvalho 2016-07-08 08:26:54 +02:00 committed by GitHub
commit 6aa44a62c5
2 changed files with 2 additions and 3 deletions

View file

@ -55,6 +55,7 @@ MIDDLEWARE_CLASSES = (
'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.security.SecurityMiddleware', 'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
) )
ROOT_URLCONF = 'project.urls' ROOT_URLCONF = 'project.urls'

View file

@ -13,6 +13,4 @@ from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings")
from whitenoise.django import DjangoWhiteNoise application = get_wsgi_application()
application = DjangoWhiteNoise(get_wsgi_application())