#22729: Runserver’s autoreload not monitoring views.py & urls.py -------------------------------+------------------------ Reporter: Nim65s | Owner: nobody Type: Uncategorized | Status: new Component: Uncategorized | Version: 1.7-beta-2 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+------------------------ Hi,
It seems that a touch on a views.py or an urls.py does not trigger the runserver's autoreload as it does with any other files I tested. I dig a little to see how this should work, and in utils/autoreload.py there is that function gen_filenames() which looks for sys.modules.values(), so I tried that in a ./manage.py shell: {{{ import sys list(filter(lambda x: 'home' in x, [filename.__file__ for filename in list(sys.modules.values()) if hasattr(filename, '__file__')])) }}} which should show the monitored files in my project, and it lists settings.py, models.py, __init__.py and even some other of my scripts, but no views.py or urls.py. Any clue ? -- Ticket URL: <https://code.djangoproject.com/ticket/22729> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/049.e49db66899914fd91f34dee4399359ad%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.