Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #96058

Re: Can anyone help me run python scripts with http.server?

From Laura Creighton <lac@openend.se>
Subject Re: Can anyone help me run python scripts with http.server?
References <3877a9ae-edbd-4d36-925a-5cb3789bd1bd@googlegroups.com> <CAMw+j7Krz-mRf0JDuvwMZja=2wJ4T6t4jibH0UtSz+pCV4wMEQ@mail.gmail.com>
Date 2015-09-06 14:28 +0200
Newsgroups comp.lang.python
Message-ID <mailman.172.1441542515.8327.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 04:50 -0700
  Re: Can anyone help me run python scripts with http.server? Laura Creighton <lac@openend.se> - 2015-09-06 14:15 +0200
    Re: Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 05:35 -0700
    Re: Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 05:38 -0700
      Re: Can anyone help me run python scripts with http.server? Laura Creighton <lac@openend.se> - 2015-09-06 14:45 +0200
        Re: Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 06:07 -0700
          Re: Can anyone help me run python scripts with http.server? Chris Angelico <rosuav@gmail.com> - 2015-09-06 23:23 +1000
            Re: Can anyone help me run python scripts with http.server? Denis McMahon <denismfmcmahon@gmail.com> - 2015-09-06 20:04 +0000
              Re: Can anyone help me run python scripts with http.server? Chris Angelico <rosuav@gmail.com> - 2015-09-07 12:48 +1000
          Re: Can anyone help me run python scripts with http.server? Laura Creighton <lac@openend.se> - 2015-09-06 17:03 +0200
          Re: Can anyone help me run python scripts with http.server? Chris Angelico <rosuav@gmail.com> - 2015-09-07 01:13 +1000
      Re: Can anyone help me run python scripts with http.server? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-09-06 13:11 -0400
    Re: Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 05:42 -0700
  Re: Can anyone help me run python scripts with http.server? Chris Warrick <kwpolska@gmail.com> - 2015-09-06 14:16 +0200
  Re: Can anyone help me run python scripts with http.server? Laura Creighton <lac@openend.se> - 2015-09-06 14:28 +0200
  Re: Can anyone help me run python scripts with http.server? Peter Otten <__peter__@web.de> - 2015-09-06 14:32 +0200
  Re: Can anyone help me run python scripts with http.server? Peter Otten <__peter__@web.de> - 2015-09-06 14:43 +0200
  Re: Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 05:47 -0700

csiph-web