Added wsgi

This commit is contained in:
nikolark committed 2011-10-08 16:19:41 +02:00
1 parent ec6a6cc922
commit 058451c66b
1 file changed
+15
+15
View File
@@ -0,0 +1,15 @@
import os
import sys
from os.path import dirname, join
def map_path(target_name=''):
'''Enables path names to be decided at runtime.'''
return join(dirname(__file__), target_name).replace('\\', '/')
os.environ['DJANGO_SETTINGS_MODULE'] = 'snurrweb.settings'
path = map_path("..")
if path not in sys.path:
sys.path.append(path)
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()