From df9fdb39f78cd001b6f420d7c54c64886b378483 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Fri, 22 May 2015 16:12:53 +0200 Subject: [PATCH] Configure WhiteNoise to serve static files --- project/wsgi.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project/wsgi.py b/project/wsgi.py index 7c2f625..fd86e6e 100644 --- a/project/wsgi.py +++ b/project/wsgi.py @@ -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())