tags:

views:

53

answers:

2

Just wondering whats the best way to test Python CGI while developing a site? (I'm used to PHP for web dev so bear with me :P)

A: 

There are a number of Python web frameworks which make this easier for you. Django, for example, has a built-in web server designed for testing out your application.

However, if you're already using CGI, the easiest way to test it would be to run Apache. Configuring CGI for Apache is straightforward and there is a lot of good documentation.

Dietrich Epp
+5  A: 

The Python standard library's CGIHTTPServer module is a simple, quick-and-dirty way to locally test CGI scripts!

Alex Martelli