#36495: Bug in determining if template file should be autoreloaded in
`django.utils.autoreload.notify_file_changed` ?
-------------------------------------+-------------------------------------
     Reporter:  dom-rau              |                     Type:  Bug
       Status:  new                  |                Component:
                                     |  Uncategorized
      Version:  5.2                  |                 Severity:  Normal
     Keywords:                       |             Triage Stage:
  templates,autoreload,watcher,filewatcher|  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
 This line checks for `not any`
 
https://github.com/django/django/blame/6df19412aabb7d969f5eab4b2ff41269de89b233/django/utils/autoreload.py#L371

 But this line returns `True` for templates:

 
https://github.com/django/django/blame/6df19412aabb7d969f5eab4b2ff41269de89b233/django/template/autoreload.py#L61

 That's why changing template files does not trigger server autoreload.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36495>
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070197e15c496c-5d209600-4c93-43a4-817a-77571dd3dfe4-000000%40eu-central-1.amazonses.com.

Reply via email to