Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.2.X] Fixed #14054 -- Added documentation for the connection_create…

…d event. Thanks to Rob Hudson for the report and patch.

Backport of r13673 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 62355d8 commit 5295d678b940c7f1bc2d1122d4c9aeb2c0bcd968 @freakboy3742 freakboy3742 committed
Showing with 36 additions and 0 deletions.
  1. +36 −0 docs/ref/signals.txt
36 docs/ref/signals.txt
@@ -436,3 +436,39 @@ Arguments sent with this signal:
The :class:`~django.template.Context` with which the template was
+Database Wrappers
+.. module:: django.db.backends
+ :synopsis: Core signals sent by the database wrapper.
+Signals sent by the database wrapper when a database connection is
+.. data:: django.db.backends.signals.connection_created
+ :module:
+.. versionadded:: 1.1
+.. versionchanged:: 1.2
+ The connection argument was added
+Sent when the database wrapper makes the initial connection to the
+database. This is particularly useful if you'd like to send any post
+connection commands to the SQL backend.
+Arguments sent with this signal:
+ sender
+ The database wrapper class -- i.e.
+ :class: `django.db.backends.postgresql_psycopg2.DatabaseWrapper` or
+ :class: `django.db.backends.mysql.DatabaseWrapper`, etc.
+ connection
+ The database connection that was opened. This can be used in a
+ multiple-database configuration to differentiate connection signals
+ from different databases.

0 comments on commit 5295d67

Please sign in to comment.
Something went wrong with that request. Please try again.