DEV Community

Discussion on: How to protect your Django Secret and OAuth Keys [2024 revised]

Collapse
 
codebyline profile image
Yumei Leventhal

Yes, this totally cleared up the fog on my end: Exposing the .env on GitHub is a security risk (as opposed to having .env on a server). Thank you for taking the time to explain! And yes, I followed the steps in this post and everything works beautifully. Since I read your post and became aware of the issue of protecting Django secret, I've read other posts on how to do it-but none is as clean and easy to follow. So thank you for bringing this issue to the attention of new Django learners.

Thread Thread
 
vladyslavnua profile image
vladyslav nykoliuk

It is absolutely my pleasure! So glad it helped :)