Re-enable whitenoise

This commit is contained in:
Gabriel Augendre 2018-01-22 21:25:42 +01:00
parent bdb5582352
commit 960e18a121
4 changed files with 9 additions and 0 deletions

2
.gitignore vendored
View file

@ -135,3 +135,5 @@ fabric.properties
# *.iml
# modules.xml
staticfiles

View file

@ -155,6 +155,10 @@ 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'

View file

@ -10,7 +10,9 @@ 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)

View file

@ -6,3 +6,4 @@ django-dotenv==1.4.1
gunicorn==19.6.0
psycopg2==2.6.2
pytz
whitenoise==3.2.1