[Django]-Django error report emails – customize settings parameters

4👍

Any setting with a name that contains API, TOKEN, KEY, SECRET, PASS or SIGNATURE will automatically be ‘cleansed’ (replaced with stars) in error mails. The easiest way to hide your own sensitive keys would probably be just renaming them.

The Django documentation has some additional things you could do to obfuscate other sensitive data that can appear in error mails, like POST variables or traceback information.

Leave a comment