[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Python webdev people -- I need your help
- Subject: [ale] Python webdev people -- I need your help
- From: djpfulio at jdpfu.com (DJ-Pfulio)
- Date: Fri, 16 Sep 2016 07:19:32 -0400
- In-reply-to: <CADvA-d=CVetQ9u3zEOTFjg-Uf-OWMFw=a2Ggy+pGTKwFuU_zyw@mail.gmail.com>
- References: <CAAt=rgAPXUF1xC7G9awXXzgWjxACV0NNh=xwNNi6==3a+=q2QQ@mail.gmail.com> <CAMdBqcPuzka39UoO2qf_dL6yDD8drcFijQyFZEJ-67=iO3PhxA@mail.gmail.com> <CADvA-d=CVetQ9u3zEOTFjg-Uf-OWMFw=a2Ggy+pGTKwFuU_zyw@mail.gmail.com>
I use a reverse proxy to a very light wsgi server which runs as many instances
of the webapp as I need. I don't do python, but in perl is really easy and this
ensures
a) the app runs as a non-privileged userid
b) the app runs on non-privileged port(s)
Both of those things are good since after nginx is setup, management by a
deployment userid is the rule.
Google says that python uses (or can use) the same method.
https://stackoverflow.com/questions/4929626/what-are-wsgi-and-cgi-in-plain-english
On 09/15/2016 09:01 PM, Ed Cashin wrote:
> The trendy was is to use something like gunicorn to hand requests off to Python
> framework like Flask, with routing in the framework.
>
> No law against CGI, though.
>
> On Thursday, September 15, 2016, Pete Hardie <pete.hardie at gmail.com
> <mailto:pete.hardie at gmail.com>> wrote:
>
> Does Django fit into that model? I used it a bit a few years ago when I was
> trying to do Python web development for a home project
>
> On Thu, Sep 15, 2016 at 10:48 AM, James Sumners <james.sumners at gmail.com> wrote:
>
> I need to setup a server that will have multiple users, each of which
> will need to develop Python scripts that will be served to web requests.
> With PHP, this can be accomplished with a single php-fpm process.
> Requests will come in to the web server for things like "coolscript.php"
> and the web server will feed "coolscript.php" through its connection to
> php-fpm and serve out the result. Is this sort of setup possible with
> Python? What I'm seeing is that a uWSGI process will need to be started
> for each script, and that process will be long running.
>