diff --git a/django/db/__init__.py b/django/db/__init__.py
index 2971b67..3771463 100644
a
|
b
|
if not settings.DATABASES:
|
17 | 17 | "settings.DATABASE_* is deprecated; use settings.DATABASES instead.", |
18 | 18 | PendingDeprecationWarning |
19 | 19 | ) |
| 20 | |
| 21 | if not settings.DATABASE_ENGINE: |
| 22 | settings.DATABASE_ENGINE = "dummy" |
20 | 23 | |
21 | 24 | settings.DATABASES[DEFAULT_DB_ALIAS] = { |
22 | 25 | 'ENGINE': settings.DATABASE_ENGINE, |
… |
… |
if DEFAULT_DB_ALIAS not in settings.DATABASES:
|
35 | 38 | raise ImproperlyConfigured("You must default a '%s' database" % DEFAULT_DB_ALIAS) |
36 | 39 | |
37 | 40 | for alias, database in settings.DATABASES.items(): |
38 | | if database['ENGINE'] in ("postgresql", "postgresql_psycopg2", "sqlite3", "mysql", "oracle"): |
| 41 | if database['ENGINE'] in ("postgresql", "postgresql_psycopg2", "sqlite3", "mysql", "oracle", "dummy", ""): |
39 | 42 | import warnings |
40 | 43 | if 'django.contrib.gis' in settings.INSTALLED_APPS: |
41 | 44 | warnings.warn( |
… |
… |
for alias, database in settings.DATABASES.items():
|
51 | 54 | else: |
52 | 55 | full_engine = 'django.contrib.gis.db.backends.%s' % database['ENGINE'] |
53 | 56 | else: |
| 57 | if not database['ENGINE']: |
| 58 | database['ENGINE'] = 'dummy' |
54 | 59 | warnings.warn( |
55 | 60 | "Short names for ENGINE in database configurations are deprecated. " |
56 | 61 | "Prepend %s.ENGINE with 'django.db.backends.'" % alias, |
… |
… |
for alias, database in settings.DATABASES.items():
|
58 | 63 | ) |
59 | 64 | full_engine = "django.db.backends.%s" % database['ENGINE'] |
60 | 65 | database['ENGINE'] = full_engine |
| 66 | elif database['ENGINE'] == "django.db.backends.": |
| 67 | database['ENGINE'] = "django.db.backends.dummy" |
61 | 68 | |
62 | 69 | connections = ConnectionHandler(settings.DATABASES) |
63 | 70 | |
diff --git a/django/db/backends/dummy/base.py b/django/db/backends/dummy/base.py
index e3ab456..c8bf4c0 100644
a
|
b
|
class DatabaseWrapper(object):
|
47 | 47 | self.client = DatabaseClient(self) |
48 | 48 | self.creation = BaseDatabaseCreation(self) |
49 | 49 | self.introspection = DatabaseIntrospection(self) |
50 | | self.validation = BaseDatabaseValidation() |
| 50 | self.validation = BaseDatabaseValidation(self) |
| 51 | self.settings_dict = args[0] |
51 | 52 | |
52 | 53 | def close(self): |
53 | 54 | pass |