blob: aa0b82c8742ad237fa291fcf552197c4a8009869 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/python
import os, sys
<%- for m in module_path -%>
path = '<%= m %>'
if path not in sys.path:
sys.path.append(path)
<%- end -%>
<%- if django_module -%>
os.environ['DJANGO_SETTINGS_MODULE'] = '<%= django_module %>.settings'
<%- else -%>
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
<%- end -%>
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
|