Files @ f6bbcc7ee328
Branch filter:

Location: website/www/wsgicustom.wsgi - annotation

bkuhn
Just quit it with this relative import stuff.

While I think these relative imports seem to be valid for the running
application, I am having trouble with the django-admin applications
regarding them. I don't see this syntactic sugar as absolutely
essential, so I'm just going to change it now.
# wsgicustom.py

import os
import sys

sys.path = ['/var/www'] + sys.path
os.environ['DJANGO_SETTINGS_MODULE'] = 'conservancy.settings'

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()