Writing CGI Programs in Python And now for something completely different... Python has a very extensive, well documented and portable module library that provides a large variety of useful functions. The Internet-related collection is particularly impressive, with modules to deal with everything from parsing and retrieving URL's to retrieving mail from POP servers and everything in between.
| Name: |
John Draper |
| Subject: |
CGI Tutorial a sick joke |
| Date: |
05-04-2000 03:35PM |
I don't know who wrote the CGI tutorial, but it must be for the most advanced experts in CGI problems.
I copied the script and pasted it into my text editor, making double sure I had the indention correct, but I have the following output from the server logs. Is there anyone on here that can help me?
inconsistent dedent
File "/var/www/crunch/cgi-bin/sample1.py", line 17
TemplateHandle.close() # close the file
^
SyntaxError: invalid token
[Thu May 4 14:13:21 2000] [error] [client 24.12.33.17] Premature end of script headers: /var/www/crunch/cgi-bin/sample1.py
Is there anyone on this system that can help me? Please reply with your Email - I might not be able to get to this forum.
John
|
Other posts in this thread:
Reply to this post:
|
 |
Visit the Python Forum!
New On DevShed:
Hot Forum Topics:
|