Commit ec136cee authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #13101 -- Added multi-db info about debugging queries. Thanks to David Fischer for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent ccf5bb18
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -28,6 +28,14 @@ Note that the raw SQL logged in ``connection.queries`` may not include
parameter quoting.  Parameter quoting is performed by the database-specific
backend, and not all backends provide a way to retrieve the SQL after quoting.

.. versionadded:: 1.2

If you are using :ref:`multiple databases<topics-db-multi-db>`, you can use the
same interface on each member of the ``connections`` dictionary::

    >>> from django.db import connections
    >>> connections['my_db_alias'].queries

Can I use Django with a pre-existing database?
----------------------------------------------