I am new to Django and loving it. I am using v1.2 locally and have an issue
with my first project from scratch: The CSRF token is not being sent with
my form post. I have {% csrf_token %} inside the <form> tag and have
verified that a csrf cookie does exist for the browser. However, I get the
error message that the post fails csrf validation. I have attempted to
follow the guidelines here:
http://docs.djangoproject.com/en/dev/ref/contrib/csrf/, to no avail. I do
have the suggested middleware setup and the import for my views.py as
described on that page.
Is this something to do with my use of render_to_response? Is this the
preferred method to handle csrf security? Thanks in advance for any reply.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.