Leaklens

django__django-15388

Dev Server fails to restart after adding BASE_DIR to TEMPLATES[0]['DIRS'] in settings

Verdict: the fix is stated in the issue (Tier A).

So could we fix this by checking if the changed file is a python file inside the template_changed signal listener, regardless of whether it is in a template directory? def template_changed(sender, file_path, **kwargs): if file_path.suffix == '.py': return # Now check if the file was a template file

The text states the fix: “So could we fix this by checking if the changed file is a python file inside the template_changed signal listener, regardless of whether it is in a template directory? d…”

All SWE-bench Lite tasks · more django/django tasks · How the check works