Re-enable whitenoise
This commit is contained in:
parent
bdb5582352
commit
960e18a121
4 changed files with 9 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -135,3 +135,5 @@ fabric.properties
|
||||||
|
|
||||||
# *.iml
|
# *.iml
|
||||||
# modules.xml
|
# modules.xml
|
||||||
|
|
||||||
|
staticfiles
|
||||||
|
|
|
@ -155,6 +155,10 @@ STATICFILES_DIRS = (
|
||||||
'static'
|
'static'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Simplified static file serving.
|
||||||
|
# https://warehouse.python.org/project/whitenoise/
|
||||||
|
|
||||||
|
STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'
|
||||||
|
|
||||||
LOGIN_URL = 'auth_login'
|
LOGIN_URL = 'auth_login'
|
||||||
LOGOUT_URL = 'auth_logout'
|
LOGOUT_URL = 'auth_logout'
|
||||||
|
|
|
@ -10,7 +10,9 @@ https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application
|
from django.core.wsgi import get_wsgi_application
|
||||||
|
from whitenoise.django import DjangoWhiteNoise
|
||||||
|
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "refunds.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "refunds.settings")
|
||||||
|
|
||||||
application = get_wsgi_application()
|
application = get_wsgi_application()
|
||||||
|
application = DjangoWhiteNoise(application)
|
||||||
|
|
|
@ -6,3 +6,4 @@ django-dotenv==1.4.1
|
||||||
gunicorn==19.6.0
|
gunicorn==19.6.0
|
||||||
psycopg2==2.6.2
|
psycopg2==2.6.2
|
||||||
pytz
|
pytz
|
||||||
|
whitenoise==3.2.1
|
||||||
|
|
Loading…
Reference in a new issue