Dan Buch is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

meatballhat / CPythonDemosCGI

The CPython "Demos/cgi" directory

Clone this repository (size: 19.4 KB): HTTPS / SSH
hg clone https://bitbucket.org/meatballhat/cpythondemoscgi
hg clone ssh://hg@bitbucket.org/meatballhat/cpythondemoscgi

CPythonDemosCGI overview

Recent commits See more »

Author Revision Comments Message Labels Date
Dan Buch 942f91e51f6a starting in on cleanup of cgi3/wiki example
Dan Buch 08b0c64f936d also cleaning up *.pyc files created by pre-3 python
Dan Buch 358435570e56 showing the raw query in form parsing example
Dan Buch 6cff3ba60de5 fixing up prose a bit in README
Dan Buch 43e0129e646a removing unused setenv bits
.. Prerequisites to launch the demo server are a reasonably modern version
.. of the lighttpd server and the python docutils distribution.

.. To start the demo, just invoke ``make``.



CGI Examples
------------

Here are some fairly simple example CGI programs.
For a larger example, see the FAQ wizard application in
``../../Tools/faqwiz/``.

- cgi0.sh_: A shell script to test that your server is configured for CGI
- cgi1.py_: A Python script to test that your server is configured for CGI
- cgi2.py_: A Python script showing how to parse a form
- cgi3.py_: A minimal Python Wiki implementation with data persistence


For further reference, be sure to `check the python.org wiki`_.


.. _cgi0.sh: cgi0.sh
.. _cgi1.py: cgi1.py
.. _cgi2.py: cgi2.py
.. _cgi3.py: cgi3.py
.. _check the python.org wiki:
    http://wiki.python.org/moin/?action=fullsearch&value=CGI&titlesearch=Titles

.. vim:filetype=rst