Gregory Shikhman 96ab5bffa7 Added initial version of config files for apache+mod_wsgi stack...
...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.
2009-08-31 08:11:48 +00:00

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]