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


Groups > comp.lang.python > #71784

Re: Python CGI

Date 2014-05-19 20:52 -0500
From Tim Chase <python.list@tim.thechases.com>
Subject Re: Python CGI
References <btv115Fb0rlU1@mid.individual.net>
Newsgroups comp.lang.python
Message-ID <mailman.10147.1400550799.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 2014-05-19 20:32, Christian wrote:
> I'd like to use Python for CGI-Scripts. Is there a manual how to
> setup Python with Fast-CGI? I'd like to make sure that Python
> scripts aren't executed by www-user, but the user who wrote the
> script.

While Burak addressed your (Fast-)CGI issues, once you have a
test-script successfully giving you output, you can use the
standard-library's getpass.getuser() function to tell who your script
is running as.

-tkc

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


Thread

Python CGI Christian <chris_news@arcor.de> - 2014-05-19 20:32 +0200
  Re: Python CGI Burak Arslan <burak.arslan@arskom.com.tr> - 2014-05-19 21:53 +0300
  Re: Python CGI Tim Chase <python.list@tim.thechases.com> - 2014-05-19 20:52 -0500
  WSGI (was: Re: Python CGI) Christian <chris_news@arcor.de> - 2014-05-25 09:01 +0200
  WSGI (was: Re: Python CGI) Chris <ch2009@arcor.de> - 2014-05-25 09:06 +0200
    Re: WSGI (was: Re: Python CGI) alister <alister.nospam.ware@ntlworld.com> - 2014-05-25 10:04 +0000
      Re: WSGI Chris <ch2009@arcor.de> - 2014-05-25 14:22 +0200

csiph-web