import uwsgi from uwsgidecorators import timer from django.utils import autoreload @timer(3) def change_code_gracefull_reload(sig): if autoreload.code_changed(): uwsgi.reload()Srikanth Bemineni
Hi ,
Is there way we can make uwsgi reload on src change during development. I am looking for similar behaviour as pserve development.ini --reload
This doesn't answer your question, but I would recommend using pserve and waitress for development.
from uwsgidecorators import postfork
This is needed for initiating my cassandra connections on forking. uwsgidecorator imports uwsgi, which will be only available when I run using uwsgi. So when I start development from fresh checked out code. I need to comment these lines.