Skip to content

Instantly share code, notes, and snippets.

@deniszh
Created October 10, 2016 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deniszh/565457a140a49aae3e19b09ed7542473 to your computer and use it in GitHub Desktop.
Save deniszh/565457a140a49aae3e19b09ed7542473 to your computer and use it in GitHub Desktop.
wsgi.py
import os
import sys
try:
# Django versions >= 1.9
from django.utils.module_loading import import_module
except ImportError:
# Django versions < 1.9
from django.utils.importlib import import_module
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'graphite.settings') # noqa
from django.conf import settings
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment