fix manage.py
[fsij-members-webapp.git] / wsgi.py
1 import sys, os, os.path
2
3 sys.path.insert(0,os.path.abspath(os.path.dirname(__file__)))
4 sys.path.insert(0, '/srv/data/tmp')
5 os.environ['DJANGO_SETTINGS_MODULE'] = 'fsij.settings'
6 # os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'fsij.settings')
7
8 from django.core.wsgi import get_wsgi_application
9 application = get_wsgi_application()
10
11 # def application(env, start_response):
12 #     start_response('200 OK', [('Content-Type', 'text/html; charset=utf-8')])
13 #     return ['<!DOCTYPE html><html><meta charset="utf-8"><title>It works',
14 #             "</title><b>It works!</b><br /><br />This is the server's ",
15 #             'default wsgi.py.']