Ask coding questions

← Back to all posts
Secret Key
A036Nikhil (1)

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.

VulcanWM (3099)

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

A036Nikhil (1)

@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 (3099)


You haven’t added what it is equal to