To perform system logging, Django uses Python's built-in logging module. The default Django configuration seems to be quite complex. In this recipe, you will learn how to tweak it to send error emails with complete HTML, similar to what is provided by Django in the DEBUG mode when an error happens.
Getting detailed error reporting via email
Getting ready
Locate the Django project in your virtual environment or Docker project structure.
How to do it...
The following procedure will help you to send detailed emails about errors:
- If you do not already have LOGGING settings...