[Tutor] .cgi or .py for Python CGIs
Tue, 11 Dec 2001 18:16:44 +0100
On 0, Frank Peavy <email@example.com> wrote:
> I have seen references to various CGI scripts and some have the .cgi
> extension and some have a .py extension. Which is correct? Is there a
> preferred method?
Python doesn't care. It only needs .py when you import modules from another
There *might* be server settings so that it matters, like I can imagine that
on a Windows server the .py is needed to associate it with Python, but on a
Unix server it should never matter, extensions are irrelevant.
So it's probably a matter of taste.