diff --git a/django/db/__init__.py b/django/db/__init__.py
index ea353e4..e4115ba 100644
|
a
|
b
|
|
| | 1 | import os |
| | 2 | |
| 1 | 3 | from django.conf import settings |
| 2 | 4 | from django.core import signals |
| 3 | 5 | from django.core.exceptions import ImproperlyConfigured |
| … |
… |
from django.utils.functional import curry
|
| 7 | 9 | __all__ = ('backend', 'connection', 'connections', 'DatabaseError', |
| 8 | 10 | 'IntegrityError', 'DEFAULT_DB_ALIAS') |
| 9 | 11 | |
| 10 | | DEFAULT_DB_ALIAS = 'default' |
| | 12 | if os.environ.has_key('DJANGO_DEFAULT_DB'): |
| | 13 | DEFAULT_DB_ALIAS = os.environ['DJANGO_DEFAULT_DB'] |
| | 14 | else: |
| | 15 | DEFAULT_DB_ALIAS = 'default' |
| 11 | 16 | |
| 12 | 17 | # For backwards compatibility - Port any old database settings over to |
| 13 | 18 | # the new values. |