Skip to content

Instantly share code, notes, and snippets.

@mallyvai
Last active October 27, 2015 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mallyvai/ed0322419e0b979e830d to your computer and use it in GitHub Desktop.
Save mallyvai/ed0322419e0b979e830d to your computer and use it in GitHub Desktop.
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings")
from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise
from raven.contrib.django.raven_compat.middleware.wsgi import Sentry
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
application = Sentry(application)
application = DjangoWhiteNoise(application)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment