When you run a Django powered website with debugging turned off, whenever a condition happens that would cause a HTTP 500 Error (such as an uncaught exception), the administrators receive an e-mail with a traceback and other relevant details to help debug the issue. These e-mails are really, really handy.
If however you run multiple Django sites, all with Debugging turned off, it can become difficult to tell which emails and errors relate to which site.
There are two solutions:
Since there are only 24 hours in a day (most of which when I'm either sleeping or at my non-Django day job which pays the bills) I've opted for #2. And doing that is easy.
All you need to do is set the EMAIL_SUBJECT_PREFIX variable in settings.py:
EMAIL_SUBJECT_PREFIX = '[myproject] '
Easy as pie!
Thanks for reading.
© Copyright 2006- Ross Poulton. All Rights Reserved unless explicitly defined.
Opinions expressed here are my own, and not those of my employer or any other party.