Staging
v0.5.1
https://github.com/python/cpython
Revision acfb5bdf150f47bac9a1baf9913f50919f7958d1 authored by Fred Drake on 03 March 2005, 17:24:20 UTC, committed by Fred Drake on 03 March 2005, 17:24:20 UTC
- function names marked with \function should include parentheses
- "standard error" instead of "stderr" for text
- a boolean parameter takes true or false values, not just True or False
1 parent 2a06df6
Raw File
Tip revision: acfb5bdf150f47bac9a1baf9913f50919f7958d1 authored by Fred Drake on 03 March 2005, 17:24:20 UTC
minor edits:
Tip revision: acfb5bd
cgi1.py
#!/usr/local/bin/python

"""CGI test 1 - check server setup."""

# Until you get this to work, your web server isn't set up right or
# your Python isn't set up right.

# If cgi0.sh works but cgi1.py doesn't, check the #! line and the file
# permissions.  The docs for the cgi.py module have debugging tips.

print "Content-type: text/html"
print
print "<h1>Hello world</h1>"
print "<p>This is cgi1.py"
back to top