blob: 0e1e4925d00c968d714e8142cfa4a75fcf7ea4b5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
from django.shortcuts import render_to_response
from django.template.context import RequestContext
def luxagraf_render(request, *args, **kwargs):
"""
Replacement for render_to_response that uses RequestContext and sets an
extra template variable, TEMPLATE_NAME.
"""
kwargs['context_instance'] = RequestContext(request)
return render_to_response(*args, **kwargs)
|