Answer the question
In order to leave comments, you need to log in
Why doesn't auto-reload work in Django 1.7?
I use django 1.7
DUBUG=True
pyinotify is installed, I
run
manage.py runserver as usual
when the code changes, the server does not restart
It appears only on one computer with Ubuntu 12.04
, Google does not give anything on this topic, I don’t even know where to dig
Rolled back to django 1.6 - everything works, updated to the latest version 1.7.4 - does not work.
Answer the question
In order to leave comments, you need to log in
I ended up digging into the django code in django/utils/autoreload.py and forcibly disabled the use of pyinotify. (Wrote after all imports USE_INOTIFY = False) After that it worked. The problem seems to be related to the module.
может помочь строчка
добавленная в manage.py . Оно не будет создавать .pyc файлы. Её стоит в последствии убрать при деплое.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question