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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 620 - (hide annotations) (download)
Wed Dec 15 01:39:37 2010 UTC (13 years, 4 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 misc 182 #!/usr/bin/python
2     import os, sys
3 misc 620 <%- 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 misc 612 os.environ['DJANGO_SETTINGS_MODULE'] = '<%= django_module %>.settings'
11 misc 620 <%- else -%>
12     os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
13     <%- end -%>
14 misc 182
15     import django.core.handlers.wsgi
16    
17     application = django.core.handlers.wsgi.WSGIHandler()
18    

  ViewVC Help
Powered by ViewVC 1.1.30