Where to store secret keys DJANGO - Stack Overflow
stackoverflow.com › questions › 15209978Mar 04, 2013 · # Remember that './secret_key.txt' is encrypted until it's needed, and only read by a non-root user with open('./secret_key.txt') as f: SECRET_KEY = f.read().strip() This isn't perfect, and, yes, an attacker could enumerate variables and access it -- but it's very difficult to do so during run-time, and Django does a good job of protecting its ...
Where to store secret keys DJANGO - Stack Overflow
https://stackoverflow.com/questions/1520997804.03.2013 · # Remember that './secret_key.txt' is encrypted until it's needed, and only read by a non-root user with open('./secret_key.txt') as f: SECRET_KEY = f.read().strip() This isn't perfect, and, yes, an attacker could enumerate variables and access it -- but it's very difficult to do so during run-time, and Django does a good job of protecting its keys from such a threat vector.