I'm starting with both web development and Python, so maybe I'm asking something stupid, but anyway. In PTVS where is only Django web project, however I would like to work with barebone WSGI Python web app as defined in PEP-0333. What should I do to setup a template for such app?
I guess I need to modify manage.py
file to start some WSGI server, but I have absolutely no idea what I can possibly use.
In addition to Dino Viehland answer. You probably would want to use httpd.serve_forever()
instead of httpd.handle_request()
.