﻿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
19076	TemplateView does not support setting mime type, like views.generic.simple.direct_to_template did	gwahl@…	nobody	"I use `direct_to_template` to serve my robots.txt, like this:

{{{

urlpatterns = patterns('',
    url('^robots.txt$', TemplateView.as_view(template_name='robots.txt', content_type='text/plain')),
...
}}}

In Django 1.5 this is no longer possible, because the function-based generic views are removed, and TemplateView does not have a mime/content type argument.

I think that a `content_type` argument should be added to TemplateView to add the same functionality that was in the function-based view. Patch to come."	Bug	closed	Generic views	dev	Normal	fixed		bmispelon@… mail@…	Accepted	1	0	0	0	0	0
