diff --git a/views/generic/simple.py b/views/generic/simple.py
index 0a68b82..6fe3123 100644
a
|
b
|
|
1 | 1 | from django.template import loader, RequestContext |
2 | 2 | from django.http import HttpResponse, HttpResponsePermanentRedirect, HttpResponseGone |
3 | 3 | |
4 | | def direct_to_template(request, template, extra_context=None, mimetype=None, **kwargs): |
| 4 | def direct_to_template(request, template, extra_context=None, mimetype=None, template_loader=loader, **kwargs): |
5 | 5 | """ |
6 | 6 | Render a given template with any extra URL parameters in the context as |
7 | 7 | ``{{ params }}``. |
… |
… |
def direct_to_template(request, template, extra_context=None, mimetype=None, **k
|
14 | 14 | else: |
15 | 15 | dictionary[key] = value |
16 | 16 | c = RequestContext(request, dictionary) |
17 | | t = loader.get_template(template) |
| 17 | t = template_loader.get_template(template) |
18 | 18 | return HttpResponse(t.render(c), mimetype=mimetype) |
19 | 19 | |
20 | 20 | def redirect_to(request, url, **kwargs): |