August 2016
Beginner to intermediate
717 pages
15h 24m
English
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 in order to send error e-mails with complete HTML, similar to what is provided by Django in the DEBUG mode when an error happens.
Locate the Django project in your virtual environment.
The following procedure will help you send detailed e-mails about errors:
myproject_env/lib/python2.7/site-packages/django/utils/log.py file in a text editor and copy the DEFAULT_LOGGING dictionary to your project's settings as the LOGGING dictionary.include_html setting to the mail_admins handler, as ...Read now
Unlock full access