> Hi,
>
> I used this:
>
> import os
> import uwsgi
>
> reloads = os.environ.get('UWSGI_RELOADS', '0')
> print "Reloads => ", reloads
> if reloads == '0':
> print "Reloading ..."
> uwsgi.reload()
>
> import django.core.handlers.wsgi
>
> application = django.core.handlers.wsgi.WSGIHandler()
>
> It prints only once the "Reloads => 0", and once the "Reloading ..."
> but it didn't reload (it seems, but i don't really know, how can I
> check).
>
> I'm runing uwsgi with:
>
> /usr/local/bin/uwsgi -x django.xml
>
> with django.xml:
>
> <uwsgi>
> <chroot>/path/chroot</chroot>
> <chdir>/path/chroot</chdir>
> <home>/inside/env</home>
> <gid>1000</gid>
> <uid>1000</uid>
> <vacuum />
> <!-- master /-->
You need to enable the master to use successfully
the uwsgi.realod() function
--
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi