* ui_ux: => 0
* easy: => 0
Comment:
I used following code for this, just place it in views.py after import,
offcourse you can replace direct_to_template to render_to_response in
similar manner
__direct_to_template = direct_to_template
def __view_direct_to_template(*args, **kwargs):
content_type = kwargs.pop('content_type', None)
r = __direct_to_template(*args, **kwargs)
if content_type:
r['Content-Type'] = content_type
return r
direct_to_template = __view_direct_to_template
--
Ticket URL: <https://code.djangoproject.com/ticket/1504#comment:17>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by anonymous):
fucking jesus god, bullshit.
why not just do the enhancement?
--
Ticket URL: <https://code.djangoproject.com/ticket/1504#comment:18>