Python for web ?
Jay O'Connor
joconnor at cybermesa.com
Mon Dec 1 09:59:43 EST 2003
black wrote:
> Howdy everyone~
>
> i heard Python could be used in web programming and aftering searching
> many docs just found something on Python and CGI. the fact is i know
> nothing about CGI and most of my projects(both of company and myself)
> are established with PHP and ASP. now the questions come:
>
> 1. Could Python be used in web programming ? (i guess yes ?)
> 2. If the answer of above is yes, then can we programms with Python in
> both server and client side or either ?
If by 'client side' you mean 'Python embedded in the HTML page' like
PHP, I think it's possible but I tend to avoid it. First off, for any
such HTML embedded scripting you have to have a server that while parse
and execute the script. A lot of ISPs offer that for PHP but I'm not
sure about for Python. More importantly, though, I'm not a big fan of
the architecture of having HTML code interspersed with script coding. I
think you'd end up with a better software design with a normal
CGI-template approach
More information about the Python-list
mailing list