NewsBlur/apps/reader/http.py

10 lines
335 B
Python
Raw Normal View History

from django.shortcuts import render
2024-04-24 09:43:56 -04:00
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.
"""
2024-04-24 09:43:56 -04:00
return render(request, template_name, context_dict, **kwargs)