U
U
un1t2015-01-30 16:22:58
Django
un1t, 2015-01-30 16:22:58

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

2 answer(s)
U
un1t, 2015-01-30
@un1t

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.

Роман Королев, 2015-01-30
@tenoclock

может помочь строчка
добавленная в manage.py . Оно не будет создавать .pyc файлы. Её стоит в последствии убрать при деплое.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question