Hello WSGI
I’m working on something that really doesn’t need theĀ massivenessĀ of Django, as a result I’ve been digging into a little FastCGI or WSGI as it seems best presented in Python.
def application(environ, start_response):
start_response(‘200 OK’,[(‘Content-type’,’text/html’)])
return [‘<html><body>Hello World!</body></html>’]
from wsgiref.handlers import CGIHandler
CGIHandler().run(application)