Django: Change the prefix in the error notification errors

When a server 500 error occurs, its handy to get a notification error from Django.

But when you have more than one Django powered site running, its kinda hard to see which site the error is ocurring on at a brief glance.

Luckily, there is a simple option to change that. In your settings file, add this:

EMAIL_SUBJECT_PREFIX = '[YourSite] '

That's it! Now your emails will have that in front instead of the generic "[Django]" label.

[ Source ]

 
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog