Ticket #2407: dj_wsgiref_cgihandler.py

File dj_wsgiref_cgihandler.py, 255 bytes (added by limon, 16 years ago)

run django as cgi with wsgiref CGIHandler

Line 
1import wsgiref.handlers
2import os, sys
3import django.core.handlers.wsgi
4
5sys.path.append("/home/limon/WebSite")
6
7os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
8
9wsgiref.handlers.CGIHandler().run(django.core.handlers.wsgi.WSGIHandler())
Back to Top