[Fixed]-CSRF token not rendered if using Context({dict}) vs just {dict}

1👍

Depends on your Django version, but the render method used to take two context related arguments, context and context_instance, the latter expects a Context or RequestContext object, the first a dictionary. The documentation has some specific deprecation details:

https://docs.djangoproject.com/en/1.8/topics/http/shortcuts/#optional-arguments

Leave a comment