diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py
index f1cbb22..2f1d48f 100644
|
a
|
b
|
SERVER_EMAIL = 'root@localhost'
|
| 151 | 151 | SEND_BROKEN_LINK_EMAILS = False |
| 152 | 152 | |
| 153 | 153 | # Database connection info. |
| 154 | | DATABASES = { |
| 155 | | 'default': { |
| 156 | | 'ENGINE': 'django.db.backends.dummy', |
| 157 | | }, |
| 158 | | } |
| | 154 | DATABASES = {} |
| 159 | 155 | |
| 160 | 156 | # Classes used to implement DB routing behavior. |
| 161 | 157 | DATABASE_ROUTERS = [] |
diff --git a/django/db/__init__.py b/django/db/__init__.py
index 26c7add..b198048 100644
|
a
|
b
|
__all__ = ('backend', 'connection', 'connections', 'router', 'DatabaseError',
|
| 8 | 8 | 'IntegrityError', 'DEFAULT_DB_ALIAS') |
| 9 | 9 | |
| 10 | 10 | |
| 11 | | if DEFAULT_DB_ALIAS not in settings.DATABASES: |
| | 11 | if settings.DATABASES and DEFAULT_DB_ALIAS not in settings.DATABASES: |
| 12 | 12 | raise ImproperlyConfigured("You must define a '%s' database" % DEFAULT_DB_ALIAS) |
| 13 | 13 | |
| 14 | 14 | connections = ConnectionHandler(settings.DATABASES) |
diff --git a/django/db/utils.py b/django/db/utils.py
index 5fa78fe..a912986 100644
|
a
|
b
|
class ConnectionDoesNotExist(Exception):
|
| 53 | 53 | |
| 54 | 54 | class ConnectionHandler(object): |
| 55 | 55 | def __init__(self, databases): |
| 56 | | self.databases = databases |
| | 56 | if not databases: |
| | 57 | self.databases = { |
| | 58 | DEFAULT_DB_ALIAS: { |
| | 59 | 'ENGINE': 'django.db.backends.dummy', |
| | 60 | }, |
| | 61 | } |
| | 62 | else: |
| | 63 | self.databases = databases |
| 57 | 64 | self._connections = local() |
| 58 | 65 | |
| 59 | 66 | def ensure_defaults(self, alias): |