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

Exception: Must provide secret_key to use csrf. #17

Closed
ghost opened this issue May 18, 2012 · 3 comments
Closed

Exception: Must provide secret_key to use csrf. #17

ghost opened this issue May 18, 2012 · 3 comments

Comments

@ghost
Copy link

ghost commented May 18, 2012

I'm getting this error when using sqlalchemy ModelView and pressing create. Is there an easy way to just disable csrf?

@mrjoes
Copy link
Member

mrjoes commented May 18, 2012

Sure: http://packages.python.org/Flask-WTF/

Pass CSRF_ENABLED = False setting when you initialize your Flask application.

@mrjoes mrjoes closed this as completed May 18, 2012
@Cosmius
Copy link
Contributor

Cosmius commented Jul 11, 2013

Why not just add a secret key?

@khahux
Copy link

khahux commented Oct 6, 2014

CSRF_ENABLED = True
SECRET_KEY = 'guess'

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

No branches or pull requests

3 participants