vigiboard / apache / test.wsgi @ 35cea70e
History | View | Annotate | Download (486 Bytes)
1 |
#Test modwsgi. |
---|---|
2 |
#Hello world test application to make sure modwsgi runs. Link from you apache file to here to test. |
3 |
|
4 |
def application(environ, start_response): |
5 |
status = '200 OK' |
6 |
output = 'Hello World!' |
7 |
#print >> sys.stderr, "sys.stderr" |
8 |
#print >> environ["wsgi.errors"], "wsgi.errors" |
9 |
response_headers = [('Content-type', 'text/plain'), |
10 |
('Content-Length', str(len(output)))] |
11 |
start_response(status, response_headers) |
12 |
|
13 |
return [output] |
14 |
|
15 |
|