﻿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
24389	CSRF error page requires DjangoTemplates backend	Tzu-ping Chung	Aymeric Augustin	"When a CSRF error is raised in debug mode, the technical page require DjangoTemplates to be rendered. If you have your TEMPLATES setting configured without a DjangoTemplates entry, you will instead get an ''ImproperlyConfigured: No DjangoTemplates backend is configured.'' error. This can be resolved if you add a DjangoTemplates entry to the TEMPLATES setting, but since many error pages (500, 404, etc.) work without DjangoTemplates, this one probably should, too.

To reproduce:

1. Create a new project.

2. Change the TEMPLATES setting to ''not'' include a DjangoTemplates entry, e.g.

{{{
TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.jinja2.Jinja2',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
        },
    },
]
}}}

3. Create a view, and send a POST request to it in the browser, without the CSRF token."	Bug	closed	Template system	1.8alpha1	Release blocker	fixed			Accepted	0	0	0	0	0	0
