Opened 9 years ago
Closed 9 years ago
#26145 closed Cleanup/optimization (fixed)
Made the debug context processor return queries for all databases
Reported by: | Sergey Lyapustin | Owned by: | Mounir |
---|---|---|---|
Component: | Template system | Version: | dev |
Severity: | Normal | Keywords: | sql_queries |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
sql_queries template variable represents only connections to default database.
context_extras['sql_queries'] = lazy(lambda: connection.queries, list)
Expected to represent queries from all connected DB's.
Change History (7)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
comment:3 by , 9 years ago
Yes, sure i use Debug Toolbar as well, but some users like to have simple solution for monitoring app DB's activity.
comment:4 by , 9 years ago
Component: | Core (Other) → Template system |
---|---|
Summary: | Not all SQL Queries included in sql_queries context variable → Made the debug context processor return queries for all databases |
Triage Stage: | Unreviewed → Accepted |
Type: | Bug → Cleanup/optimization |
Version: | 1.9 → master |
I'm not enthusiastic about it, but I guess it's fine.
comment:5 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
I wonder if there's much value in enhancing that template tag. I think the Django debug toolbar is a better solution these days. Have you tried it?