﻿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
29785	Using {{ csrf_token }} throws exception (AttributeError: 'dict' object has no attribute 'META') if no render context	jeffrey k eliasen	nobody	"Using calling `render()` with no context on a template that uses {{ csrf_token }} results in an exception being thrown.

I believe the appropriate fix is to change:

    if ""CSRF_COOKIE"" not in request.META:

to:

    if not request or not request.META or ""CSRF_COOKIE"" not in request.META:

I am happy to create a PR for this issue once I know it is a desired fix."	Bug	new	CSRF	dev	Normal				Unreviewed	0	0	0	0	1	0
