mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
9 lines
416 B
Python
9 lines
416 B
Python
![]() |
from django.shortcuts import render_to_response
|
||
|
from django.template import RequestContext
|
||
|
|
||
|
def respond(request, template_name, context_dict, **kwargs):
|
||
|
"""
|
||
|
Use this function rather than render_to_response directly. The idea is to ensure
|
||
|
that we're always using RequestContext. It's too easy to forget.
|
||
|
"""
|
||
|
return render_to_response(template_name, RequestContext(request, context_dict), **kwargs)
|