Error while using csrf

Posted by iHeartDucks on Stack Overflow See other posts from Stack Overflow or by iHeartDucks
Published on 2010-06-13T01:40:20Z Indexed on 2010/06/13 1:42 UTC
Read the original article Hit count: 294

Filed under:

This is my view function

@csrf_request
def view_function(request, template_name):
    c = {}
    return return render_to_response(template_name, {'recipe' : objRecipeForm}, c, context_instance=RequestContext(request))

I also used a {% csrf_token %} in my template

The error I get is render_to_string() got multiple values for keyword argument 'context_instance'

I am kinda new with django so any help is appreciated.

© Stack Overflow or respective owner

Related posts about django