From 5958f182c9918263403369aff0f68a2b7c221a2c Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 22 Jan 2018 07:46:09 +0100 Subject: [PATCH] Disable whitenoise --- refunds/settings.py | 4 ---- refunds/wsgi.py | 2 -- requirements.txt | 1 - 3 files changed, 7 deletions(-) diff --git a/refunds/settings.py b/refunds/settings.py index 85fec5e..1205d3d 100644 --- a/refunds/settings.py +++ b/refunds/settings.py @@ -155,10 +155,6 @@ STATICFILES_DIRS = ( 'static' ) -# Simplified static file serving. -# https://warehouse.python.org/project/whitenoise/ - -STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage' LOGIN_URL = 'auth_login' LOGOUT_URL = 'auth_logout' diff --git a/refunds/wsgi.py b/refunds/wsgi.py index adee6e5..1a5ba1a 100644 --- a/refunds/wsgi.py +++ b/refunds/wsgi.py @@ -10,9 +10,7 @@ https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ import os from django.core.wsgi import get_wsgi_application -from whitenoise.django import DjangoWhiteNoise os.environ.setdefault("DJANGO_SETTINGS_MODULE", "refunds.settings") application = get_wsgi_application() -application = DjangoWhiteNoise(application) diff --git a/requirements.txt b/requirements.txt index 04dfc95..9cc6963 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,4 +6,3 @@ django-dotenv==1.4.1 gunicorn==19.6.0 psycopg2==2.6.2 pytz -whitenoise==3.2.1