Would suggest they perhaps look at:

* http://wsgi.tutorial.codepoint.net/ <http://wsgi.tutorial.codepoint.net/>

and this three part series to understand web server and relationship to WSGI.

* https://ruslanspivak.com/lsbaws-part1/ 
<https://ruslanspivak.com/lsbaws-part1/>

Definitely agree about using Flask as well. Then look at using mod_wsgi.

Sorry for brief response. Off on a trip later today so any response from me 
will be delayed.

Graham

> On 24 Jan 2017, at 1:14 pm, Jason Garber <[email protected]> wrote:
> 
> Did you happen to read the excellent docs on myd_wsgi?
> 
> It is NOT the same as cgi at all.  Nowhere near.  
> 
> If you wish to use python to power a Web page you need a way to "call" it.  
> CGI obviously can do this, albeit inefficiently amount other issues.
> 
> Wsgi is "Web server gateway interface".  The basic idea is to configure a web 
> server (apache) with wsgi (mod_wsgi) and then point it to your whatever.wsgi 
> script which contains your application function which is then called each 
> time a request comes in.
> 
> Sugreat you find os packages for python and mod_wsgi and apache so they all 
> play nice.
> 
> Then read the manual on configuring.
> 
> Also - a light framework like Flask will make development easy.
> 
> J
> 
> On Jan 23, 2017 3:06 PM, <[email protected] <mailto:[email protected]>> 
> wrote:
> So I was advised to use wsgi instead of cgi, so I tried to set it up with 
> following settings for a basic example, without Django or any other webframe:
> 
> specs:
> 
> linux Kubuntu, apache 2.4, python 3.5
> apache is running, mod_wsgi installed and enabled
> website files are in root/var/www/html/, I have sudo access to this folder
> the python 3.5 path is usr/bin/env python3
> the python script: "index.py, simplest of scripts, has been made executable
> the python executable lives in root/var/www/scripts
> Questions:
> 
> how do I make this function spit out it's result
> 
> what's the deal with this wsgi script? I have no need for that, I also do not 
> want any wsgi extensions
> 
> what apache directive do I need to introduce to run a script
> So where does the 'application' function live?
> Really lost in this wsgi idea, some clarification might help
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/modwsgi 
> <https://groups.google.com/group/modwsgi>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/modwsgi 
> <https://groups.google.com/group/modwsgi>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to