Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #16873 - Added dummy database backend in default settings, so t…

…hat just importing django.db doesn't trigger ImproperlyConfigured if there is no DATABASES setting.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16946 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 29def3e52c31ffd39c7a67e5fc04165133dd4440 1 parent ac6361a
@carljm carljm authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  django/conf/global_settings.py
View
3  django/conf/global_settings.py
@@ -143,6 +143,9 @@
# Database connection info.
DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.dummy',
+ },
}
# Classes used to implement db routing behaviour
Please sign in to comment.
Something went wrong with that request. Please try again.