Why does a Web browser running under Linux show Python CGI scripts as plain text?!

Skip Montanaro skip at pobox.com
Mon Feb 3 16:30:21 EST 2003


    ghostagain> One big problem: I have a Web site (which I coded using
    ghostagain> Windows) at http://usable-thought.com which has some CGI
    ghostagain> pages coded using Python, to produce dynamically rendered
    ghostagain> HTML

You need to tell your web server (Apache, probably) that .py files are CGI
scripts.  Check your server configuration docs.

Skip





More information about the Python-list mailing list