﻿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
34878	"Autoreload crashes with FORM_RENDERER=""django.forms.renderers.TemplatesSetting""."	danjac	danjac	"Running **Python 3.11** and **Django 5.0a1**.

I have the following settings:

{{{#!python

DEBUG = True

FORM_RENDERER = ""django.forms.renderers.TemplatesSetting""

TEMPLATES = [
    {
        ""BACKEND"": ""django.template.backends.django.DjangoTemplates"",
        ""DIRS"": [BASE_DIR / ""templates""],
        ""OPTIONS"": {
            ""debug"": True,
            ""context_processors"": [
                ""django.template.context_processors.debug"",
                ""django.template.context_processors.request"",
                ""django.contrib.auth.context_processors.auth"",
                ""django.template.context_processors.i18n"",
                ""django.template.context_processors.media"",
                ""django.template.context_processors.static"",
                ""django.template.context_processors.tz"",
                ""django.contrib.messages.context_processors.messages"",
            ],
        },
    }
]

}}}

This causes the development server (i.e. ''manage.py runserver'') to crash whenever a template is saved:

{{{
  File ""python-path/lib/python3.11/site-packages/django/template/autoreload.py"", line 60, in template_changed
    reset_loaders()
  File ""python-path/lib/python3.11/site-packages/django/template/autoreload.py"", line 42, in reset_loaders
    backend = get_default_renderer().engine
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TemplatesSetting' object has no attribute 'engine'

}}}"	Bug	closed	Template system	5.0	Release blocker	fixed		Priyank Panchal Jannis Vajen	Ready for checkin	1	0	0	0	1	0
