Added "mimetype" param to django.views.generic.simple.direct_to_template
|Reported by:||Owned by:||Jacob|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I think direct_to_template is the only generic view that doesn't take a "mimetype" param. This patch remedies that. The use-case that drove me to write this was wanting robots.txt to have the right Content-Type. I'm sure there are others (CSS generation and JS generation come to mind).
I've tested this with a dummy project and via runtests.py (though direct_to_template doesn't seem to be covered).
Change History (3)
comment:1 Changed 10 years ago by
|Component:||Template system → Generic views|
|Owner:||changed from Adrian Holovaty to Jacob|
|Summary:||[patch] Added "mimetype" param to django.views.generic.simple.direct_to_template → Added "mimetype" param to django.views.generic.simple.direct_to_template|
|Triage Stage:||Unreviewed → Ready for checkin|