Il giorno 13/set/2010, alle ore 13.49, Damjan Georgievski ha scritto:

> 
> And this is the run.sh script that starts the Django app with uwsgi:
> 
> #!/bin/sh
> DIRNAME=`dirname $0`
> cd $DIRNAME
> 
> export PYTHONUSERBASE=$DIRNAME/env
> export UWSGI_MODULE="django.core.handlers.wsgi"
> export UWSGI_CALLABLE="WSGIHandler()"
> export DJANGO_SETTINGS_MODULE="myapp.settings"
> exec /usr/local/bin/uwsgi "$@"
> 
> Django is installed in /home/damjan/django-app/env with:
> $ export PYTHONUSERBASE=/home/damjan/django-app//env
> $ pip install Django --install-option=--user
> 
> The django application itself is in /home/damjan/django-app/myapp/
> 
> 
> ps.
> pep-370 only works in python 2.6 and better, a writeup about it and pip is 
> here:
> http://damjan.softver.org.mk/wiki/pep-370
> 
> -- 
> damjan
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi


Reported it in

http://projects.unbit.it/uwsgi/wiki/Example

Thanks

--
Roberto De Ioris
http://unbit.it
JID: [email protected]

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

Reply via email to