/[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 182 - (hide annotations) (download)
Sat Nov 6 17:50:14 2010 UTC (14 years, 3 months ago) by misc
File size: 227 byte(s)
- add django support with wsgi
1 misc 182 #!/usr/bin/python
2     import os, sys
3     sys.path.append('<%= module_path %>')
4     os.environ['DJANGO_SETTINGS_MODULE'] = '<%= module =%>.settings'
5    
6     import django.core.handlers.wsgi
7    
8     application = django.core.handlers.wsgi.WSGIHandler()
9    

  ViewVC Help
Powered by ViewVC 1.1.30