Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crispy Forms CSRF token error #3637

Closed
nanuxbe opened this issue Nov 15, 2015 · 1 comment
Closed

Crispy Forms CSRF token error #3637

nanuxbe opened this issue Nov 15, 2015 · 1 comment
Labels
Milestone

Comments

@nanuxbe
Copy link
Contributor

nanuxbe commented Nov 15, 2015

Crispy forms default to POST method resulting in a CSRF Token exception when trying to use filters + crispy forms (submitting the form by hitting since there is no submit button, see #3636)
.

When initially rendering an API page with filters and crispy forms, the server also spits out this error (probably because crispy forms is trying to add the token to the form):
venv/lib/python3.5/site-packages/django/template/defaulttags.py:66: UserWarning: A {% csrf_token %} was used in a template, but the context did not provide the value. This is usually caused by not using RequestContext.

@xordoquy xordoquy added the Bug label Nov 16, 2015
@xordoquy xordoquy added this to the 3.3.2 Release milestone Nov 16, 2015
@jpadilla
Copy link
Member

jpadilla commented Nov 18, 2015

This is related to #3636 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants