#32744: Template changes cause dev server to reload
-------------------------------------------+------------------------
               Reporter:  Ryan P Kilby     |          Owner:  nobody
                   Type:  Bug              |         Status:  new
              Component:  Template system  |        Version:  3.2
               Severity:  Normal           |       Keywords:
           Triage Stage:  Unreviewed       |      Has patch:  0
    Needs documentation:  0                |    Needs tests:  0
Patch needs improvement:  0                |  Easy pickings:  0
                  UI/UX:  0                |
-------------------------------------------+------------------------
 Django 3.2 has changed the autoreload behavior of the dev server, and it
 now reloads on template file changes. Reverting to 3.1 fixes the issue. I
 believe this is related to #25791 and
 https://github.com/django/django/pull/12928

 Template settings:
 {{{#!div style="font-size: 90%"
 {{{#!python
 DEBUG = True

 TEMPLATES = [
     {
         "BACKEND": "django.template.backends.django.DjangoTemplates",
         "DIRS": [os.path.join(BASE_DIR, "templates")],
         "APP_DIRS": True,
         "OPTIONS": {
             "debug": DEBUG,
             "context_processors": [
                 "django.template.context_processors.debug",
                 "django.template.context_processors.request",
                 "django.contrib.auth.context_processors.auth",
                 "django.contrib.messages.context_processors.messages",
             ],
         },
     },
 ]
 }}}
 }}}

 Given that it can take several seconds for the dev server to reload, this
 change can be disruptive to template authoring.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32744>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.fc09d1693d3f77a2a620b5352c5fd534%40djangoproject.com.

Reply via email to