Parent Directory | Revision Log
- add support for multiple module_path ( as needed by transifex ), and to not prefix the settings module ( in case of, but not needed now )
1 | #!/usr/bin/python |
2 | import os, sys |
3 | <%- for m in module_path -%> |
4 | path = '<%= m %>' |
5 | if path not in sys.path: |
6 | sys.path.append(path) |
7 | <%- end -%> |
8 | |
9 | <%- if django_module -%> |
10 | os.environ['DJANGO_SETTINGS_MODULE'] = '<%= django_module %>.settings' |
11 | <%- else -%> |
12 | os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' |
13 | <%- end -%> |
14 | |
15 | import django.core.handlers.wsgi |
16 | |
17 | application = django.core.handlers.wsgi.WSGIHandler() |
18 |
ViewVC Help | |
Powered by ViewVC 1.1.30 |