Django; Is it okay to change SECRET_KEY on my own?

3339 views python
2

I'm trying to deploy my app. So I'm thinking of changing SECRET_KEY that attached originally. Is it okay? Also when I try to set the key environment variable, a part of the key like !5 cannot be set on WSL. How can I fix this?

answered question

1 Answer

3

The only thing that changing the secret key would do is to invalidate any existing sessions or signed cookies. If you haven't deployed yet, or don't care about momentarily logging everyone out, you can change it whenever you like.

posted this

Have an answer?

JD

Please login first before posting an answer.