i'm going to be using custom context processors a lot so i've written my own shortcut to invoke RequestContext and get a template rendered. this is my function:
def render_to_response_with_context_processors(template_name, request, args={}): """ this function was written to provide a "shortcut" when using context processors if i use this a lot i'll come up with a better (shorter) name """ t = template_loader.get_template(template_name) c = RequestContext(request, args) return HttpResponse(t.render(c)) this is the only way i could get context processors specified in the setting TEMPLATE_CONTEXT_PROCESSORS to be run in a view. i basically want to know if what i do is the "correct" way of doing things and also if there are other way of getting context processors to run. (i.e. not having to invoke RequestContext)? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---