Using Python with a website

Ben Finney ben+python at benfinney.id.au
Wed Jul 4 19:57:40 EDT 2018


Adrian Taylor <ataylor at faithlc.qld.edu.au> writes:

> I have just discovered Python […]

Welcome. The Python community has a starter page for beginners at
<URL:https://wiki.python.org/moin/BeginnersGuide>.

> However my next big step is to be able to use this python feature
> within a website.

Good. Be aware, though, that running a program on the public internet is
a very complicated thing. Partly this is because your program needs to
be on a web site, which itself needs to play nicely with the rest of the
internet.

And, an even more important part, is that the internet is a very wild
place with a continual noise of malicious parties trying to compromise
any site. So you need to do a lot of things just to defend against that.

All of which is to say: There is a huge increase in complexity from “my
simple program which accepts input and produces output”, to a website
that will do the same thing.

See the community guides on web frameworks, which let you wrap your
feature in a whole lot of code that will take care of the “be a website”
job <URL:https://wiki.python.org/moin/WebFrameworks/>.

For general purpose use, I recommend Django which has excellent help
<URL:https://www.djangoproject.com/>.

-- 
 \      “If sharing a thing in no way diminishes it, it is not rightly |
  `\      owned if it is not shared.” —Augustine of Hippo (354–430 CE) |
_o__)                                                                  |
Ben Finney



More information about the Python-list mailing list