From a33bd309a67f25cc48f84aeee3eef5f60f762fd6 Mon Sep 17 00:00:00 2001 From: John Matthew Date: Tue, 5 Jul 2016 07:34:04 -0700 Subject: [PATCH 1/3] Put Whitenoise back in settings.py --- project/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/project/settings.py b/project/settings.py index 977ad195..d805be31 100644 --- a/project/settings.py +++ b/project/settings.py @@ -55,6 +55,8 @@ MIDDLEWARE_CLASSES = ( 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware', + 'whitenoise.middleware.WhiteNoiseMiddleware', + ) ROOT_URLCONF = 'project.urls' From 22b1bdf6565d20f2a7f1ca3a5f44ba3fa1b7d075 Mon Sep 17 00:00:00 2001 From: John Matthew Date: Thu, 7 Jul 2016 07:04:00 -0700 Subject: [PATCH 2/3] remove extra line --- project/settings.py | 1 - 1 file changed, 1 deletion(-) diff --git a/project/settings.py b/project/settings.py index d805be31..95f4332c 100644 --- a/project/settings.py +++ b/project/settings.py @@ -56,7 +56,6 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', - ) ROOT_URLCONF = 'project.urls' From 47671cfcf7900d66fc320c24772f73888b777a95 Mon Sep 17 00:00:00 2001 From: John Matthew Date: Thu, 7 Jul 2016 21:47:39 -0700 Subject: [PATCH 3/3] update to remove old whitenoise setup --- project/wsgi.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/project/wsgi.py b/project/wsgi.py index fd86e6eb..7c2f625e 100644 --- a/project/wsgi.py +++ b/project/wsgi.py @@ -13,6 +13,4 @@ from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings") -from whitenoise.django import DjangoWhiteNoise - -application = DjangoWhiteNoise(get_wsgi_application()) +application = get_wsgi_application()