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

nanuxbe opened this issue Nov 15, 2015 · 1 comment

Crispy Forms CSRF token error #3637

nanuxbe opened this issue Nov 15, 2015 · 1 comment


Copy link

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/ 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
Copy link

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
None yet

No branches or pull requests

3 participants