Ticket #15336: 15336.diff

File 15336.diff, 743 bytes (added by Ivan Sagalaev, 14 years ago)

Patch

  • django/db/__init__.py

    === modified file 'django/db/__init__.py'
     
    1212# For backwards compatibility - Port any old database settings over to
    1313# the new values.
    1414if not settings.DATABASES:
    15     import warnings
    16     warnings.warn(
    17         "settings.DATABASE_* is deprecated; use settings.DATABASES instead.",
    18         DeprecationWarning
    19     )
     15    if settings.DATABASE_ENGINE:
     16        import warnings
     17        warnings.warn(
     18            "settings.DATABASE_* is deprecated; use settings.DATABASES instead.",
     19            DeprecationWarning
     20        )
    2021
    2122    settings.DATABASES[DEFAULT_DB_ALIAS] = {
    2223        'ENGINE': settings.DATABASE_ENGINE,
Back to Top