Initial commit

This commit is contained in:
nikolark committed 2011-12-28 16:21:02 +01:00
commit 48e38f4f64
26 files changed
+1117

No files matched your search

+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'] = '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()