Code

Opened 3 years ago

Closed 3 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: UI/UX:

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 3 years ago.
__init__.py (4.2 KB) - added by anonymous 2 years ago.

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by CarlFK

comment:1 Changed 3 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

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.

Changed 2 years ago by anonymous

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.