mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
parent
b7d3b057f3
commit
e69348b4e7
8 changed files with 34 additions and 23 deletions
|
@ -11,7 +11,7 @@ Then, just do this::
|
|||
|
||||
>>> from django.db import connection
|
||||
>>> connection.queries
|
||||
[{'sql': 'SELECT polls_polls.id,polls_polls.question,polls_polls.pub_date FROM polls_polls',
|
||||
[{'sql': 'SELECT polls_polls.id, polls_polls.question, polls_polls.pub_date FROM polls_polls',
|
||||
'time': '0.002'}]
|
||||
|
||||
``connection.queries`` is only available if :setting:`DEBUG` is ``True``.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue