Potential bad practice with secret key in tutorial example #5501
Unanswered
FavoritoHJS
asked this question in
Q&A
Replies: 2 comments 1 reply
-
and as per tradition, i think of a solution mere seconds after publishing my question |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think the point of the tutorial is to have something simple. Adding a config wile would make it more complex... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, while looking at the tutorial, I noticed something odd: The page describing the secret key (https://flask.palletsprojects.com/en/3.0.x/config/#SECRET_KEY) says to not commit the secret key, but the tutorial puts the secret key in init.py, which is almost certainly gonna be commited.
Beta Was this translation helpful? Give feedback.
All reactions