#22477: Remove contrib middleware from MIDDLEWARE_CLASSES global defaults
-------------------------------------+-------------------------------------
Reporter: mlavin | Owner: mlavin
Type: | Status: assigned
Cleanup/optimization | Version:
Component: Core (Other) | 1.7-beta-2
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by mlavin):
Yes if you have a runtests.py for a reusable app which doesn't include
{{{contrib.auth}}} or {{{contrib.sessions}}} in the {{{INSTALLED_APPS}}}
and doesn't change the {{{MIDDLEWARE_CLASSES}}} but does hit a view by
running through the middleware stack (i.e with the test client) you'll see
these deprecation warnings. With this change you'll instead see the system
check which for 1.7 at least is louder then the
{{{RemovedInDjango19Warning}}}. The fix for it in either way is to be
explicit about the required set of {{{MIDDLEWARE_CLASSES}}} for running
the tests and if you need the auth or session middleware then those should
be in the {{{INSTALLED_APPS}}} as well.
--
Ticket URL: <https://code.djangoproject.com/ticket/22477#comment:6>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.81e47830b2e22ca18badbdd3f8b21fb1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.