From: Gilles Ganault on
Hello

I'd like to make sure I understand what the options are to write web
applications in Python:

- � la PHP, using Apache's mod_python

- using eg. Lighttpd and configuring it to load the Python interpreter
every time a Python script is called (www.jakehilton.com/?q=node/54)

- long-running process, by compiling the Python script as a
stand-alone program that will then wait for queries on a port and
being called by the web server through eg. the WSGI

As for writing apps, I can either built it from scratch, or use
frameworks like Pylons, TurboGears, or Django.

Is this correct?

Thank you.
From: Daniel Fetchinson on
> I'd like to make sure I understand what the options are to write web
> applications in Python:
>
> - à la PHP, using Apache's mod_python
>
> - using eg. Lighttpd and configuring it to load the Python interpreter
> every time a Python script is called (www.jakehilton.com/?q=node/54)
>
> - long-running process, by compiling the Python script as a
> stand-alone program that will then wait for queries on a port and
> being called by the web server through eg. the WSGI
>
> As for writing apps, I can either built it from scratch, or use
> frameworks like Pylons, TurboGears, or Django.
>
> Is this correct?

Basically, yes.

For additional info have a look at http://wiki.python.org/moin/WebProgramming

Cheers,
Daniel



--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
From: Gilles Ganault on
On Mon, 12 Apr 2010 12:13:17 +0200, Daniel Fetchinson
<fetchinson(a)googlemail.com> wrote:
>For additional info have a look at http://wiki.python.org/moin/WebProgramming

Thanks for the link.
From: Luis M. González on
On 12 abr, 06:57, Gilles Ganault <nos...(a)nospam.com> wrote:
> Hello
>
> I'd like to make sure I understand what the options are to write web
> applications in Python:
>
> - à la PHP, using Apache's mod_python
>
> - using eg. Lighttpd and configuring it to load the Python interpreter
> every time a Python script is called (www.jakehilton.com/?q=node/54)
>
> - long-running process, by compiling the Python script as a
> stand-alone program that will then wait for queries on a port and
> being called by the web server through eg. the WSGI
>
> As for writing apps, I can either built it from scratch, or use
> frameworks like Pylons, TurboGears, or Django.
>
> Is this correct?
>
> Thank you.

You should first investigate the different python web frameworks,
choose one and then use the deployment options supported by your
choice. These frameworks support several ways to deploy your apps,
such as those you mentioned.

If you want an easy way to get started for free, check the Google App
Engine.
It's the google infraestructure to host web apps (written in python or
Java), and it's free as long as you don't surpass the limited quotas
on bandwith and data used (which are quite generous). You don't need
to set up anything. All you need is a google account to get started.

Luis
From: Stefan Behnel on
Gilles Ganault, 12.04.2010 11:57:
> I'd like to make sure I understand what the options are to write web
> applications in Python:
>
> - � la PHP, using Apache's mod_python
>
> - using eg. Lighttpd and configuring it to load the Python interpreter
> every time a Python script is called (www.jakehilton.com/?q=node/54)
>
> - long-running process, by compiling the Python script as a
> stand-alone program that will then wait for queries on a port and
> being called by the web server through eg. the WSGI

Those are "deployment" options, not "write" (== design/implementation)
options. If you stick to a WSGI compatible framework, you are free to
deploy your application any way you like or need, depending on the specific
context or environment.


> As for writing apps, I can either built it from scratch, or use
> frameworks like Pylons, TurboGears, or Django.

Amongst tons of other options, as already pointed out.

Stefan