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


Groups > comp.lang.python > #100914

Re: CGI

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Warrick <kwpolska@gmail.com>
Newsgroups comp.lang.python
Subject Re: CGI
Date Sun, 27 Dec 2015 21:01:15 +0100
Lines 24
Message-ID <mailman.34.1451246484.11925.python-list@python.org> (permalink)
References <mailman.31.1451231525.11925.python-list@python.org> <n5p8ue$ajo$1@speranza.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de AbBffKrD2F2NDeGRPT3WRQ39HaeNQ75dnOIsLqeHT3nQ==
Return-Path <kwpolska@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.035
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'plenty': 0.07; 'output': 0.13; 'django': 0.13; '(there': 0.16; 'nginx)': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wsgi': 0.16; 'wrote:': 0.16; '2015': 0.20; '(like': 0.23; 'tutorials': 0.23; 'header:In-Reply-To:1': 0.24; 'command': 0.26; 'chris': 0.26; '(e.g.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'module.': 0.27; 'url:mailman': 0.30; 'december': 0.32; 'run': 0.33; 'useful': 0.33; 'url:python': 0.33; 'url:listinfo': 0.34; 'server': 0.34; 'received:google.com': 0.35; 'behind': 0.35; 'url:org': 0.36; 'received:209.85': 0.36; 'framework': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'associated': 0.38; 'received:209': 0.38; 'application': 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'show': 0.62; 'real': 0.62; 'link:': 0.69; 'pol': 0.84; 'similar)': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=sgpXKGy3ygAArh6WLmnX8qH0++Dctqd4G1L7xgorQtY=; b=VkdBYBK+aQM/OiZQDHzW6jsYB+S7CVdP44JvSKRJb8evQaVz9gGSZBz9d5queKACM7 vqdjdlRalje7UcUkcG/V6s8n3ItG0TGBl0Zvl2LjKAQk2qmxkFjXGcrAtjnH6JpPxsoM omJ8YJrPw9yTLjToXbqwBncULJbBY4D1e2n/R4HHGCQN9qzZ+3MR0jK0V6y5MveKx+wF flRWxKLLOw4qTozHh8Xk6YLJR9e6HMPVkcKIjFWjXu9t+/dNKDL3Qvz/9Fpadkzz4U9B kXv1W/qFze0XqT40q+6XZClvbKbqaG5+tiRdITs+xSPZHw6CdDt07yDQpiiPOEyxLQlt hg+A==
X-Received by 10.112.150.169 with SMTP id uj9mr12397208lbb.17.1451246475464; Sun, 27 Dec 2015 12:01:15 -0800 (PST)
In-Reply-To <n5p8ue$ajo$1@speranza.aioe.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:100914

Show key headers only | View raw


On 27 December 2015 at 18:59, Laurent Delacroix <laurent@krutt.org> wrote:
> On 26/12/15 10:41, Pol Hallen wrote:
>>
>> How can I execute a local command (like ls or similar) and show output
>> via browser?
>>
>
> Either you use a proper web framework (Flask, Bottle, Django in order of
> complexity) or you set up a web server with FastCGI support (e.g. nginx)
> and run a WSGI application behind it.
>
> Useful link:
> https://docs.python.org/2/howto/webservers.html#setting-up-fastcgi
>
> Lau
> --
> https://mail.python.org/mailman/listinfo/python-list

Better yet, use a real WSGI server like uWSGI and its associated nginx
module. (there are plenty of tutorials around the Internet)

-- 
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16

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


Thread

CGI Pol Hallen <pythonml@fuckaround.org> - 2015-12-26 10:41 +0100
  Re: CGI Maitu Zentz <zen@nonirvana.org> - 2015-12-27 17:19 +0100
  Re: CGI Laurent Delacroix <laurent@krutt.org> - 2015-12-27 18:59 +0100
    Re: CGI Chris Warrick <kwpolska@gmail.com> - 2015-12-27 21:01 +0100

csiph-web