Ticket #12661: settings.diff
File settings.diff, 509 bytes (added by , 15 years ago) |
---|
-
django/db/__init__.py
diff --git a/django/db/__init__.py b/django/db/__init__.py index ea353e4..9aba6ff 100644
a b from django.utils.functional import curry 7 7 __all__ = ('backend', 'connection', 'connections', 'DatabaseError', 8 8 'IntegrityError', 'DEFAULT_DB_ALIAS') 9 9 10 DEFAULT_DB_ALIAS = 'default'10 DEFAULT_DB_ALIAS = getattr(settings, 'DEFAULT_DB_ALIAS', 'default') 11 11 12 12 # For backwards compatibility - Port any old database settings over to 13 13 # the new values.