How do you monitor errors in your Django project?
Django has a standard error monitoring mechanism that sends an error notification with detailed information to the specified email. The thing is undoubtedly useful. The letter contains all information about the error: the name of the error, where it originated, where the transition to the page came from, etc. But there is one big drawback: when a project is large and there are quite a few mistakes, the number of error notification letters becomes such that most of them are simply ignored.
We used the same option until we discovered Sentry.

Sentry is a Django embedded application for online error monitoring. The user interface is a dashboard with a list of errors and the ability to perform various actions on them.
')
Key features:
- The list of errors is updated in real time.
- If the error was marked as resolved and reappeared, it is again created and counted in a separate thread.
- Errors are grouped and displayed in order of frequency of occurrence.
- Errors can be filtered by status, logging source, logging level, server name, etc.
Installation
1. So, install the module with the
easy_install django-sentry
.
2. Next, add sentry to your application settings file (settings.py):
INSTALLED_APPS = (
...
'indexer',
'paging',
'sentry',
'sentry.client',
...
)
3. Now set the url for Sentry in your urls.py file:
urlpatterns = patterns('',
(r'^sentry/', include('sentry.urls')),
)
4. To complete, run
python manage.py syncdb
to create the necessary tables. All is ready.
It is also recommended to add the option
TEMPLATE_DEBUG=True
to your settings file. This will allow Sentry to get debug information about errors.
Related Links
github.com/dcramer/django-sentry