[uWSGI] uwsgi+nginx+cloudviz

Roberto De Ioris roberto at unbit.it
Tue Nov 16 08:18:22 CET 2010

Il giorno 15/nov/2010, alle ore 21.17, Kevin Bush ha scritto:

> Hello,
> I’m currently trying to get cloudviz (https://github.com/mbabineau/cloudviz/blob/master/README.md) up and running to chart RDS data.  I’m having problems comprehending how to create a uwsgi application script for it.  I’m fairly new at this, and successfully got the simple hello world tutorial served via nginx.  I’m unsure on how to create an application script that pipes the json string from the html/js code I’m using to the cloudviz.py python script from above.  How does one convert an existing python script into a uwsgi app?  Any ideas, or links to further documentation would be greatly appreciated.
> Thanks in advance,
> Kevin Bush

Hi Kevin, this is a CGI application.
You have to re-write only the main() function using the WSGI standard.

Call this new function 'application' and the job is done

Roberto De Ioris

More information about the uWSGI mailing list