Django error messages - customizing parameter options
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
source to share