Commit 784b74a0 authored by Jasper St. Pierre's avatar Jasper St. Pierre

Add a sweettooth.wsgi.example file.

parent 3f08ffe7
......@@ -10,3 +10,4 @@ venv
Demos
sweettooth/uploaded-files
local_settings.py
sweettooth.wsgi
import os
import site
import sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'sweettooth.settings'
_path = os.path.dirname(__file__)
_venv = os.path.join(_path, 'venv/lib/python2.7/site-packages/')
if os.path.exists(_venv):
site.addsitedir(_venv)
sys.path.extend([_path, os.path.join(_path, 'sweettooth')])
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment