Home
Download
Documentation
Weblog
Community
Code
Code
Search:
Login
Register
Settings
Wiki
Timeline
Browse Source
Reports
View Tickets
New Ticket
Roadmap
Search
Ticket #2407
: dj_wsgiref_cgihandler.py
File dj_wsgiref_cgihandler.py, 255 bytes (added by limon, 1 year ago)
run django as cgi with wsgiref CGIHandler
Line
1
import
wsgiref.handlers
2
import
os
,
sys
3
import
django.core.handlers.wsgi
4
5
sys
.
path
.
append
(
"/home/limon/WebSite"
)
6
7
os
.
environ
[
'DJANGO_SETTINGS_MODULE'
]
=
'mysite.settings'
8
9
wsgiref
.
handlers
.
CGIHandler
()
.
run
(
django
.
core
.
handlers
.
wsgi
.
WSGIHandler
())
Download in other formats:
Original Format