blob: 2188e1e73a91049dad696cb66cff9d88977955c0 (
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()
|