> Hello
> Now that Nginx supports uwsgi natively (since 0.8.40), I'd like to learn how 
> to write WSGI Python scripts.
> Some Python scripts simply include "from wsgiref.simple_server import 
> make_server"..
> ... while others refer to what seems like an independant binary -- 
> http://bartek.im/blog/2012/07/08/simplicity-nginx-uwsgi-deployment.html
> Is the Python version and the stand-alone version different implementations 
> of WSGI servers, and the latter is what's provided by 
> http://projects.unbit.it/uwsgi/ ?

wsgiref.simple_server is, as it says on the tin, a very simple, silly server 
that really has no reason to be used in any sort of serious production 
environment.
And you got it right -- uWSGI is a WSGI protocol (among others) compliant 
application server capable of loading your Python (or Perl/PSGI, or Ruby/Rack) 
application and exposing it, over one or more protocols (uwsgi, HTTP, ZeroMQ, 
etc.) to the outside world.
 
> Provided I'd rather use the stand-alone version, is there a tutorial to show 
> how to configure Nginx 0.8.40+ to work with uWSGI?

Using a stand-alone WSGI server (and especially using uWSGI over Gunicorn or 
something else ;) ) is the Right Thing to do. :)
You'll probably be able to get going using the WSGI Quickstart tutorial right 
here on the uWSGI docs wiki.
http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html

Best of luck and welcome to the wonderful world of WSGI!

/Aarni
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to