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 http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
