Ask coding questions

← Back to all posts
Secret Key
A036Nikhil

It saying that I need Secret key, even though I have secret key.

I tried searching for tutorials to help me solve this issue, but I am not able to find. I am learning Flask via MEga Tutoril by Miguel Grinberg and I don't know how to solve this.

Voters
A036Nikhil
Comments
hotnewtop
VulcanWM

You have to add a secret key to the flask app
Try doing:
app.config[‘SECRET_KEY’] = secret_key

A036Nikhil

@VulcanWM Yes, but I have created config file and there I have already add Secret Ke, why its not working? In tutorial its working

VulcanWM

@A036Nikhil


You haven’t added what it is equal to