﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22729	Runserver’s autoreload not monitoring views.py & urls.py	Guilhem Saurel	nobody	"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 ?"	Uncategorized	closed	Uncategorized	1.7-beta-2	Normal	invalid			Unreviewed	0	0	0	0	0	0
