Opened 14 years ago

Closed 14 years ago

#14595 closed (wontfix)

DATABASE DeprecationWarning includes new syntax.

Reported by: CarlFK Owned by: nobody
Component: Database layer (models, ORM) Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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.

Attachments (2)

14595.diff (1.7 KB ) - added by CarlFK 14 years ago.
__init__.py (4.2 KB ) - added by anonymous 13 years ago.

Download all attachments as: .zip

Change History (3)

by CarlFK, 14 years ago

Attachment: 14595.diff added

comment:1 by Russell Keith-Magee, 14 years ago

Resolution: wontfix
Status: newclosed

I disagree that this would be an improvement. The warning doesn't need to give the complete step-by-step instructions for fixing the problem -- that's what release notes are for.

by anonymous, 13 years ago

Attachment: __init__.py added
Note: See TracTickets for help on using tickets.
Back to Top