First time here? Check out the FAQ!
0

DeprecationWarning(s)
 

Just wanted to point out some Deprecation warnings i'm seeing in the logs that i didn't see anyone else point out yet. I suppose these are 'known issues' already?

[Tue Dec 13 06:12:39 2011] [error] /usr/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.'

[Tue Dec 13 06:12:39 2011] [error]   DeprecationWarning
[Tue Dec 13 06:12:41 2011] [error] /usr/lib/python2.6/site-packages/django/contrib/auth/models.py:393: DeprecationWarning: The user messaging API is deprecated. Please update your code to use the new messages framework.
[Tue Dec 13 06:12:41 2011] [error]   category=DeprecationWarning)

[Tue Dec 13 06:12:41 2011] [error] /usr/lib/python2.6/site-packages/django/core/context_processors.py:27: DeprecationWarning: The context processor at `django.core.context_processors.auth` is deprecated; use the path `django.contrib.auth.context_processors.auth` instead.

[Tue Dec 13 06:12:41 2011] [error]   DeprecationWarning
[Tue Dec 13 06:12:42 2011] [error] /usr/lib/python2.6/site-packages/django/db/__init__.py:19: DeprecationWarning: settings.DATABASE_* is deprecated; use settings.DATABASES instead.

[Tue Dec 13 06:12:42 2011] [error]   DeprecationWarning
[Tue Dec 13 06:12:42 2011] [error] /usr/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.'

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
drpoovilleorg's avatar
51
drpoovilleorg
asked 13 years ago
Evgeny's avatar
13.2k
Evgeny
updated 13 years ago

Comments

These are not bugs :) but only warnings. That means that in the future versions of Django those features will turn into bugs, possibly in Django 1.4

Evgeny's avatar Evgeny (13 years ago)
2

I've asked our designer to fix the layout issue with the preformatted text flowing over the author info.

Evgeny's avatar Evgeny (13 years ago)
see more comments

1 Answer

0

Hi, this warning is raised by django > 1.2 the django default settings for databases used to be the one that we still use, if you want to remove this warning just change your settings database format to the new one explained here: https://docs.djangoproject.com/en/dev/ref/settings/#databases

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Fitoria's avatar
1.1k
Fitoria
answered 13 years ago
link

Comments

with django 1.3 (what we use), a few new deprecation warnings appear: Authentication backends without asupportsanonymoususerattribute are deprecated., and Authentication backends without asupportsobjectpermissionsattribute are deprecated.

piskvorky's avatar piskvorky (13 years ago)

Hmm, I thought markdown strings between backticks `` were not formatted.

piskvorky's avatar piskvorky (13 years ago)
see more comments