Skip to content

Commit 3a03d68

Browse files
committed
Docs: add database queries log documentation
1 parent 347878a commit 3a03d68

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

documentation/api/guides/debugging.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,12 @@ This is the guide to debugging the API using VS Code. This uses Microsoft's
6969
[Visual Code debugger's official instructions](https://code.visualstudio.com/docs/editor/debugging)
7070
to better understand how to use the debugger interface to accomplish tasks
7171
like setting breakpoints, watching variables etc.
72+
73+
## Debugging Database Queries
74+
75+
To log all database queries, add the following `env` variables to your configuration
76+
77+
```
78+
DJANGO_LOG_LEVEL=DEBUG
79+
DJANGO_DATABASE_LOGGING=True
80+
```

0 commit comments

Comments
 (0)