Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #100914
| From | Chris Warrick <kwpolska@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: CGI |
| Date | 2015-12-27 21:01 +0100 |
| 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> |
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 | Next — Previous in thread | Find similar | Unroll 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