Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Designing website

Reply
Thread Tools

Designing website

 
 
joe jacob
Guest
Posts: n/a
 
      01-24-2008
Hi All,

I am planning to design a website using windows, apache, mysql,
python. 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.
 
Reply With Quote
 
 
 
 
Tim Chase
Guest
Posts: n/a
 
      01-24-2008
> I am planning to design a website using windows, apache, mysql,
> python.


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
choice.

> 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[1] 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[2] guy, but for some folks CherryPy[3],
Pylons[4], TurboGears[5] or Zope[6] 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[7] 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
a time.

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.

HTH,

-tkc

[1] http://www.boddie.org.uk/python/WebStack.html
[2] http://www.djangoproject.com
[3] http://www.cherrypy.org
[4] http://pylonshq.com
[5] http://turbogears.org
[6] http://zope.org
[7] http://twistedmatrix.com






 
Reply With Quote
 
 
 
 
Bruno Desthuilliers
Guest
Posts: n/a
 
      01-24-2008
joe jacob a écrit :
> Hi All,
>
> I am planning to design a website using windows, apache, mysql,
> python. But I came to know that python cgi is very slow.


The problem here is not with Python, but with how cgi works - that is,
by launching a new process for each request. Trying to write Java cgi
would be even worse FWIW !-)

> I came across
> mod_python also but no good documentation are available for learning
> mod_python.


Err... mod_python is actually well documented IMHO - but suppose you
already have some good knowledge of web programming and Apache.

> Suggest me a good solution for this as I don't know other
> languages like PHP; I prefer python.


If you're new to web programming and look for a good doc and a strong
community, I'd suggest Django. If you're feeling a bit more lucky, you
might have a look at Pylons.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web design services | website designing | hire a website designer |creative web design sravan kumar Python 0 06-21-2011 12:23 PM
Free Website Designing solution. preeti Java 2 02-26-2007 07:56 PM
Free Website Designing solution+MORE monika HTML 0 02-25-2007 01:28 AM
Free Website Designing solution+MORE jenisha HTML 0 02-24-2007 09:32 PM
Free Website Designing Solution . salinamanandhar@yahoo.com Digital Photography 1 02-11-2007 08:57 AM



Advertisments