We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 347878a commit 3a03d68Copy full SHA for 3a03d68
documentation/api/guides/debugging.md
@@ -69,3 +69,12 @@ This is the guide to debugging the API using VS Code. This uses Microsoft's
69
[Visual Code debugger's official instructions](https://code.visualstudio.com/docs/editor/debugging)
70
to better understand how to use the debugger interface to accomplish tasks
71
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