Django error messages - customizing parameter options
I noticed that the Django error mails include my project options options, including some secret keys and secret numbers.
What is the best way to reset / tweak some Django SETTINGS from error messages?
+3
arnon cohen
source
to share
1 answer
Any settings with a name that contains API, TOKEN, KEY, SECRET, PASS, or SIGNATURE will be automatically cleared (replaced with asterisks) in error messages. The easiest way to hide your private keys is probably just to rename them.
The Django documentation contains some additional things you could do to obfuscate other sensitive data that may appear in error messages, such as POST variables or trace information.
+3
Wander nauta
source
to share