Can anyone help me run python scripts with http.server?
Laura Creighton
lac at openend.se
Sun Sep 6 08:28:26 EDT 2015
In a message of Sun, 06 Sep 2015 14:16:37 +0200, Chris Warrick writes:
>Don’t use http.server. Don’t use CGI. This is not how things work in Python.
>
>In Python, you should use a web framework to write your code. Web
>frameworks include Flask, Django, Pyramid… Find one that’s popular and
>that you like, and learn that. You won’t have any `.py` URLs, instead
>you will have modern pretty URLs with no extensions. And a lot of
>things will be abstracted — no manual header creation, help with safe
>forms and databases.
This is really great advice, and if your idea is 'but I don't want
anything as _big_ as a framework, look at flask http://flask.pocoo.org/
and bottle http://bottlepy.org/docs/dev/index.html both of which
are tiny microframeworks.
Laura
More information about the Python-list
mailing list