#14595: DATABASE DeprecationWarning includes new syntax.
------------------------------------------+---------------------------------
Reporter: CarlFK | Owner: nobody
Status: new | Milestone:
Component: Database layer (models, ORM) | Version: 1.2
Keywords: | Stage: Unreviewed
Has_patch: 1 |
------------------------------------------+---------------------------------
There are 2 Deprecation Warnings that can display code ready to cut/paste
into settings.py:
Old:
{{{
/home/carl/src/veyepar/lib/python2.6/site-
packages/django/db/__init__.py:60:
DeprecationWarning: Short names for ENGINE in database configurations are
deprecated. Prepend default.ENGINE with 'django.db.backends.'
}}}
New:
{{{
/home/carl/src/veyepar/lib/python2.6/site-
packages/django/db/__init__.py:62:
DeprecationWarning: Short names for ENGINE in database configurations are
deprecated. Prepend default.ENGINE with 'django.db.backends.'
django.db.backends.sqlite3
}}}
New:
{{{
/home/carl/src/veyepar/lib/python2.6/site-
packages/django/db/__init__.py:31:
DeprecationWarning: settings.DATABASE_* is deprecated; instead use
DATABASES = {'default': {'ENGINE': 'sqlite3',
'HOST': '',
'NAME': '/home/carl/src/veyepar/dj/veyepar.db',
'OPTIONS': {},
'PASSWORD': '',
'PORT': '',
'TEST_CHARSET': None,
'TEST_COLLATION': None,
'TEST_NAME': None,
'USER': ''} }
DeprecationWarning
}}}
It would be nice to roll the 2 together, but that would make the code way
more messy, which isn't worth it.
--
Ticket URL: <http://code.djangoproject.com/ticket/14595>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.