Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #73642

Re: Execute a python script with CGI ?

References <1403796296902-5062183.post@n6.nabble.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date 2014-06-26 17:43 -0600
Subject Re: Execute a python script with CGI ?
Newsgroups comp.lang.python
Message-ID <mailman.11271.1403826272.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Jun 26, 2014 at 9:24 AM, dandrigo <laurent.celati@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Execute a python script with CGI ? Ian Kelly <ian.g.kelly@gmail.com> - 2014-06-26 17:43 -0600

csiph-web