Grokking Django
0% completed
Logging and Breakpoints in Django
Once DEBUG is False, the detailed error page and the Debug Toolbar are gone. When something fails on the live site, you have only what the program wrote down while it ran. Logging produces that written record. On a developer's machine, Python's debugger offers a second view: it stops a view in the middle of a request so that you can inspect its variables.
The examples use the same mysite project and blog app as the previous lesson.
Logging
A log is a record of events written while the program runs. Django uses Python's standard logging module, and the `LOGGING
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%