Python is an excellent language for text string handling, doing exactly what's required of a language that's to be used on your Web server, to read and filter user inputs, and to return Web pages in response.
This topic is presented on public course
Python Programming
Examples from our training material
| hsapp1.py | Web application mark 1 - 3 pages, sessions, hidden fields |
| hsapp2.py | Web application, Mark 2 - 3 pages, sessions, hidden fields |
| hsdemo.htp | Template for hsapp1 and hsapp2 |
| inf.py | Simple web demo - produce form, complete form, act on data entered to form |
| piddle.py | CGI, Python, Web server, HTML - reporting server time |
| place.py | Python / CGI - read from a form, run an application, fill in a template to respond |
| pybrow | Browser client |
| pyserv | basic web server |
| python_mysql_web.py | Python, MySQL, CGI (Web) board |
| tellmewhen.py | Running a Python program through CGI |
| template.htp | Template for simple web example |
| visitor.py | Analysing a web access log file |
Specialist books
Pictures
Re-using HTML templates and web helpers for efficient coding
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
Introduction to Python on the Web.
Reading from a form, using templates, other techniques.
Web and Python subjects - state, security etc..
Where does my Python run?.
How do I link pages together?.
What about security considerations?.
Worked example - a multipage registration system.
Source code.
Design and Overall Structure.
Completing a template.
Maintaining a session.
Dealing with nasty characters.
Providing sticky fields.
Cleaning up stale sessions.
Debugging your script.
Taking this application further.
Can I make the Python run more efficiently on the Web?.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 600 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.