in section testing the views
I got the error
{{{
ImproperlyConfigured: Module "django.contrib.auth.middleware" does not
define a "SessionAuthenticationMiddleware" attribute/class
}}}
after some searching on the web, I discovered that I need to comment out
that middleware in the settings.py
I wish someone updates the tutorial to mention the above fix
It's such show stopper for someone trying django tutorials for first time.
--
Ticket URL: <https://code.djangoproject.com/ticket/23786>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/23786#comment:1>
* status: new => closed
* resolution: => worksforme
Comment:
Hi,
`django.contrib.auth.middleware.SessionAuthenticationMiddleware` is new in
1.7 (and part of the default value for `settings.MIDDLEWARES`).
It seems that you're using a settings file made for Django 1.7 but you're
running an older version of Django.
Upgrading Django to 1.7 or re-generating your settings file with the
appropriate version should fix the issue.
Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/23786#comment:2>