diff options
| author | David Cramer | 2011-03-31 11:42:23 -0700 |
|---|---|---|
| committer | David Cramer | 2011-03-31 11:42:23 -0700 |
| commit | 3f578cf684b7e3b9a20d9c777950c28c44db074a (patch) | |
| tree | d7573707ccdfbd0627d85c9a2b6f90d62f7537fe /debug_toolbar/utils/compat | |
| parent | f492b56c8200eebb77b8023ab386c9ef412cc06b (diff) | |
| download | django-debug-toolbar-3f578cf684b7e3b9a20d9c777950c28c44db074a.tar.bz2 | |
Add utilities to inject and monitor functions. Change DB tracking to use new injection method on BaseDatabaseWrapper.cursor
Diffstat (limited to 'debug_toolbar/utils/compat')
| -rw-r--r-- | debug_toolbar/utils/compat/__init__.py | 0 | ||||
| -rw-r--r-- | debug_toolbar/utils/compat/db.py | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/debug_toolbar/utils/compat/__init__.py b/debug_toolbar/utils/compat/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/debug_toolbar/utils/compat/__init__.py diff --git a/debug_toolbar/utils/compat/db.py b/debug_toolbar/utils/compat/db.py new file mode 100644 index 0000000..f3b37e6 --- /dev/null +++ b/debug_toolbar/utils/compat/db.py @@ -0,0 +1,6 @@ +try: + from django.db import connections +except ImportError: + # Compat with < Django 1.2 + from django.db import connection + connections = {'default': connection}
\ No newline at end of file |
