Last active
February 17, 2018 08:33
-
-
Save lockie/8476889c360b6d2d2af22c596a72f5a3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 django | |
from django.utils import autoreload | |
import uwsgi | |
def reloader(): | |
if django.conf.settings.DEBUG: | |
print('Starting debug reloader') | |
while True: | |
if autoreload.inotify_code_changed(): | |
uwsgi.reload() | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment