mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-19 15:45:54 +00:00

...to replace the current apache+mod_proxy+cherrypy stack. Added conn.commit() to actually commit INSERTs - required now since all tables are InnoDB type. Fixed bugs in log_type parsing.
16 lines
486 B
Python
16 lines
486 B
Python
#Test modwsgi.
|
|
#Hello world test application to make sure modwsgi runs. Link from you apache file to here to test.
|
|
|
|
def application(environ, start_response):
|
|
status = '200 OK'
|
|
output = 'Hello World!'
|
|
#print >> sys.stderr, "sys.stderr"
|
|
#print >> environ["wsgi.errors"], "wsgi.errors"
|
|
response_headers = [('Content-type', 'text/plain'),
|
|
('Content-Length', str(len(output)))]
|
|
start_response(status, response_headers)
|
|
|
|
return [output]
|
|
|
|
|