/[adm]/puppet/modules/apache/templates/django.wsgi
ViewVC logotype

Contents of /puppet/modules/apache/templates/django.wsgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 620 - (show annotations) (download)
Wed Dec 15 01:39:37 2010 UTC (13 years, 10 months ago) by misc
File size: 405 byte(s)
- 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