Execute a python script with CGI ?

Ian Kelly ian.g.kelly at gmail.com
Thu Jun 26 19:43:44 EDT 2014


On Thu, Jun 26, 2014 at 9:24 AM, dandrigo <laurent.celati at gmail.com> wrote:
> Dear all,
>
> I coded a python script (web service with query postgresql/postgis). Up to
> now, i did several test on my local laptop station (windows).
>
> Now i want to execute this python script on our remote server (Web server :
> Apache;OS :  Linux).
>
> How to write a CGI template please?
>
> Could you throw light for me?
>
> Thank you very much.
>
> Regards.

While you can run Python as a CGI, the recommended pattern is to use
WSGI.  I suggest starting here:

https://docs.python.org/2/howto/webservers.html



More information about the Python-list mailing list