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


Groups > comp.lang.python > #73642 > unrolled thread

Re: Execute a python script with CGI ?

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2014-06-26 17:43 -0600
Last post2014-06-26 17:43 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#73642 — Re: Execute a python script with CGI ?

FromIan Kelly <ian.g.kelly@gmail.com>
Date2014-06-26 17:43 -0600
SubjectRe: Execute a python script with CGI ?
Message-ID<mailman.11271.1403826272.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web