#28035: Help Django Programmer to link a Query in their database logs with the
Python lines of code that generated the request.
-------------------------------------+-------------------------------------
Reporter: Rémy Hubscher | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: 1.10
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Rémy Hubscher):
The idea I had in mind was to add an new property to the queryset if the
DEBUG setting is set to True that contains a traceback to the current
QuerySet creation.
The new queryset is created with the traceback list of the previous
queryset in which we append the new traceback from the current creation.
It is then possible to look at the queryset property when we actually
build the request from it to have a full traceback to each call that was
used to create the queryset.
--
Ticket URL: <https://code.djangoproject.com/ticket/28035#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.97f3578bdeef3a07b84487a6707a7e46%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.