python.list at tim.thechases.com
Thu Jan 24 12:50:21 CET 2008
> I am planning to design a website using windows, apache, mysql,
You don't mention what sort of website...low-volume or
high-volume, basic text or graphic-intensive, simple design or
complex web-application logic. Each of these factors into one's
> But I came to know that python cgi is very slow. I came across
> mod_python also but no good documentation are available for learning
> mod_python. Suggest me a good solution for this as I don't know other
> languages like PHP; I prefer python.
If you're coming from CGI development and planning a small app,
I'll give a plug for the WebStack framework which basically
reduces just about every option out there (CGI, mod_python,
built-in BaseHTTPServer, and several othes) to a common API.
However, I'd also recommend looking into one of the more powerful
frameworks that abstracts away the server interface a bit more.
I'm personally a Django guy, but for some folks CherryPy,
Pylons, TurboGears or Zope fills the bill.
They do the grunt work of interfacing with your web-server
(whether through mod_python, FastCGI or WSGI, or possibly other
options such as a Twisted internal server) as well as make a
lot of other web-development aspects easier through separation of
concerns. In most, business logic is kept separate from
presentation logic which are both kept separate from the data
layer. This allows developers to focus on a particular aspect at
There are also deployment issues. If you have your own server,
it's not a big deal. However, if you're looking for cheap
low-end shared hosting, the resources made available on such a
machine are usually a bit constrained for these more powerful
schemes. Sadly, this does make PHP look inviting for deployment
on low-end hosting services despite its warty language.
More information about the Python-list