Hi everyone,
I have just implemented the python version of the upython shell script
(available in contrib)
Below the code:
import os,sys
UWSGI_INI = # ./uwsgi.ini
UWSGI_COMMAND = # ./uwsgi
os.environ.update({'UWSGI_INI':UWSGI_INI,
'UWSGI_PYRUN':sys.argv[1],
'UWSGI_PYARGV':" ".join(sys.argv[2:])})
os.system(UWSGI_COMMAND)
run it (for example to use manage.py of django):
upython.py manage.py syncdb
and your app will be executed in the uwsgi environment
I Hope it can be useful
--
Raffaele Colace
UPCODE.it | software engineering
www.upcode.it | [email protected]
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi