Serve static files

This commit is contained in:
Raphael Michel
2015-05-12 21:48:41 +02:00
parent a3c0f061f4
commit c6bff238ba
7 changed files with 18 additions and 8 deletions

View File

@@ -8,7 +8,13 @@ https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pretix.settings")
from django.core.wsgi import get_wsgi_application # NOQA
application = get_wsgi_application()
try:
from dj_static import Cling, MediaCling
application = Cling(MediaCling(get_wsgi_application()))
except ImportError:
application = get_wsgi_application()