Configure WhiteNoise to serve static files

This commit is contained in:
Rodolfo Carvalho 2015-05-22 16:12:53 +02:00
parent fcf0ccde53
commit df9fdb39f7

View file

@ -13,4 +13,6 @@ from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings")
application = get_wsgi_application()
from whitenoise.django import DjangoWhiteNoise
application = DjangoWhiteNoise(get_wsgi_application())