Commit 289a6d5f by Ed Morley

Use WhiteNoise 3.0's new runserver_nostatic feature

See:
http://whitenoise.evans.io/en/stable/django.html#using-whitenoise-in-development
parent 484409ca
...@@ -34,6 +34,10 @@ INSTALLED_APPS = [ ...@@ -34,6 +34,10 @@ INSTALLED_APPS = [
'django.contrib.contenttypes', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
# Disable Django's own staticfiles handling in favour of WhiteNoise, for
# greater consistency between gunicorn and `./manage.py runserver`. See:
# http://whitenoise.evans.io/en/stable/django.html#using-whitenoise-in-development
'whitenoise.runserver_nostatic',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment