Skip to content

Instantly share code, notes, and snippets.

@ujuc
Last active August 29, 2015 14:06
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 ujuc/0264d4dd0065315ba07e to your computer and use it in GitHub Desktop.
Save ujuc/0264d4dd0065315ba07e to your computer and use it in GitHub Desktop.
wsgi
import os
import sys
BASE_DIR = os.path.dirname((os.path.dirname(__file__)))
sys.path.append(BASE_DIR)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test.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