Created
December 15, 2012 17:59
-
-
Save cougarwww/4297671 to your computer and use it in GitHub Desktop.
python: django uwsgi autoreload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment