Hello, world!

I'm coming into the Python world from a PHP background.  I'm trying to get 
a working Pyramid application working on my own machine, and I've almost 
made it.  I have nginx and uWSGI running, and can call a Python script from 
the browser successfully.  However, lots of research, reading 
documentation, and even reading through the "starter project" code has 
failed to make it clear to me how to connect Pyramid to wsgi.  The script 
looks like this:

def application(env, start_response):
    start_response('200 OK', [('Content-Type', 'text/html')])
    return "Hello universe!"

The INI configuration file for uWSGI is as follows:

[uwsgi]
socket = /tmp/uwsgi.sock
master = true
processes = 4
file = ./app.py
callable = application
daemonize = ./uwsgi.log
pidfile = /tmp/app_process.pid
virtualenv = /home/jonah/.virtualenvs/test

So a request to http://localhost/ in the browser gives me "Hello 
Universe!".  How can I modify my script/uWSGI configuration to run Pyramid 
instead?  Thanks for your help.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-discuss/-/xW1HspiacSYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to