mirror of
https://github.com/django/django.git
synced 2025-10-25 22:56:12 +00:00
Fixed #14436 -- Escalated 1.2 PendingDeprecationWarnings to DeprecationWarnings, and removed 1.1 deprecated code.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -15,7 +15,7 @@ if not settings.DATABASES:
|
||||
import warnings
|
||||
warnings.warn(
|
||||
"settings.DATABASE_* is deprecated; use settings.DATABASES instead.",
|
||||
PendingDeprecationWarning
|
||||
DeprecationWarning
|
||||
)
|
||||
|
||||
settings.DATABASES[DEFAULT_DB_ALIAS] = {
|
||||
@@ -44,7 +44,7 @@ for alias, database in settings.DATABASES.items():
|
||||
"django.contrib.gis is now implemented as a full database backend. "
|
||||
"Modify ENGINE in the %s database configuration to select "
|
||||
"a backend from 'django.contrib.gis.db.backends'" % alias,
|
||||
PendingDeprecationWarning
|
||||
DeprecationWarning
|
||||
)
|
||||
if database['ENGINE'] == 'postgresql_psycopg2':
|
||||
full_engine = 'django.contrib.gis.db.backends.postgis'
|
||||
@@ -56,7 +56,7 @@ for alias, database in settings.DATABASES.items():
|
||||
warnings.warn(
|
||||
"Short names for ENGINE in database configurations are deprecated. "
|
||||
"Prepend %s.ENGINE with 'django.db.backends.'" % alias,
|
||||
PendingDeprecationWarning
|
||||
DeprecationWarning
|
||||
)
|
||||
full_engine = "django.db.backends.%s" % database['ENGINE']
|
||||
database['ENGINE'] = full_engine
|
||||
|
||||
Reference in New Issue
Block a user