/[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 182 - (show annotations) (download)
Sat Nov 6 17:50:14 2010 UTC (13 years, 4 months ago) by misc
File size: 227 byte(s)
- add django support with wsgi
1 #!/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