#16373: Django admin templates trigger a DeprecationWarning -------------------------------------+------------------------------------- Reporter: slinkp | Owner: nobody Type: | Status: reopened Cleanup/optimization | Version: 1.3 Component: contrib.admin | Resolution: Severity: Normal | Triage Stage: Keywords: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by anonymous):
* status: closed => reopened * resolution: invalid => * easy: 0 => 1 Comment: The documentation on the aforementioned documentation page states: "If you don’t want to use messages, you can remove the MessageMiddleware line from MIDDLEWARE_CLASSES, the messages context processor from TEMPLATE_CONTEXT_PROCESSORS and 'django.contrib.messages' from your INSTALLED_APPS." However, if MessageMiddleware is removed from the settings file then you get "/usr/local/lib/python2.6/dist- packages/django/contrib/auth/models.py:393: DeprecationWarning: The user messaging API is deprecated. Please update your code to use the new messages framework. category=DeprecationWarning)" message. The documentation needs to be amended to only say: "If you don’t want to use messages, you can remove the messages context processor from TEMPLATE_CONTEXT_PROCESSORS and 'django.contrib.messages' from your INSTALLED_APPS." -- Ticket URL: <https://code.djangoproject.com/ticket/16373#comment:3> Django <https://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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.