website/www/wsgicustom.wsgi
Brett Smith 6f540a0e3f Remove hardcoded references to /var/www.
This makes it easier to run the code elsewhere, like a development
environment.
2016-12-02 22:17:42 -05:00

11 lines
272 B
Python

# wsgicustom.py
import os
import sys
root_dir = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, root_dir)
os.environ['DJANGO_SETTINGS_MODULE'] = 'conservancy.settings'
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()