Autoreloader looping Django 2.2

36 views
Skip to first unread message

Dan

unread,
Apr 25, 2019, 4:06:59 PM4/25/19
to Django users

I'm using Django 2.2 on a new project and suddenly the autoreloader is looping when I change a file


DEBUG:


/urls.py. is_changed: False, is_new: True

/urls.py previous mtime: None, current mtime: 1556221457.0

/urls.py notified as changed. Signal results: [(<function translation_file_changed at 0x7fd933e05d90>, None)].

/urls.py changed, reloading

It says the file is new but it was just changed - it refers to translation_file_changed but I have no translation files in my project.


My project is on a virtualbox shared folder, if I start a new project from scratch it works ok and previous versions of Django work fine.


I tried using watchman + pywatchman and it doesn't seem to work at all, I dont think it works with shared virtualbox folders. 


Is there anyway I can get this working with 2.2 can I use the old reloader or do I need to revert to 2.1?

Dan

unread,
Apr 26, 2019, 10:00:04 AM4/26/19
to Django users
Forgot to mention that this is on a mac osx host with ubuntu 16 virtualbox guest, I'm not sure that has something to do with it?

Ramiro Morales

unread,
Apr 29, 2019, 6:33:58 PM4/29/19
to django...@googlegroups.com
Hi Dan,
Can you try the stable/2.2.x git branch? it contains a couple of post-2.1 fixes to the reloading code which will get released as 2.2.1 in a few days AFAIK..

Also, is the folder  where urls-py is located shared between the host and the VM in some way? What file system type is the host using?

--
Ramiro Morales
@ramiromorales

Dan

unread,
May 1, 2019, 8:35:28 AM5/1/19
to Django users
Hi Ramiro

Thanks for answering.

Tried stable 2.2.1 and it looks like it is working ok now.

The folder is a virtualbox shared folder, shared from an osx host.

Thanks for your help!
Reply all
Reply to author
Forward
0 new messages