Re: csrf token not working
hi,
step 3, put "django.core.context_processors.csrf" in your
TEMPLATE_CONTEXT_PROCESSORS and if you use django 1.3 use "render()"
in place of render_to_response in yours views. Or if you want to use
render_to_response put "context_instance=RequestContext(request)" at
the end of render_to_response
On Jul 2, 4:15 pm, Bobby Roberts <tchend...@gmail.com> wrote:
> I'm looking at the docs athttps://docs.djangoproject.com/en/dev/ref/contrib/csrf/
> for CSRF implementation. I've got steps 1 and 2 done but the csrf
> token is not even showing in the form even though i have {%csrf_token
> %} within the form html.... any ideas what would cause it not to
> create a token?
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home