Merge pull request #50 from jfmatth/add-whitenoise
Put Whitenoise back in settings.py
This commit is contained in:
commit
6aa44a62c5
2 changed files with 2 additions and 3 deletions
|
@ -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'
|
||||||
|
|
|
@ -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())
|
|
||||||
|
|
Loading…
Reference in a new issue