Ticket #12661: settings.diff

File settings.diff, 509 bytes (added by kylef, 6 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 
    77__all__ = ('backend', 'connection', 'connections', 'DatabaseError',
    88    'IntegrityError', 'DEFAULT_DB_ALIAS')
    99
    10 DEFAULT_DB_ALIAS = 'default'
     10DEFAULT_DB_ALIAS = getattr(settings, 'DEFAULT_DB_ALIAS', 'default')
    1111
    1212# For backwards compatibility - Port any old database settings over to
    1313# the new values.
Back to Top