Are you running Django 1.10? It looks like your MIDDLEWARE setting is 
ignored which suggests you might be using an older version.

On Wednesday, August 17, 2016 at 6:43:14 PM UTC-4, Andrew Emory wrote:
>
> My settings.py file has the default MIDDLEWARE settings generated by 
> django-admin startapp:
>
> MIDDLEWARE = [
>     'django.middleware.security.SecurityMiddleware',
>     'django.contrib.sessions.middleware.SessionMiddleware',
>     'django.middleware.common.CommonMiddleware',
>     'django.middleware.csrf.CsrfViewMiddleware',
>     'django.contrib.auth.middleware.AuthenticationMiddleware',
>     'django.contrib.messages.middleware.MessageMiddleware',
>     'django.middleware.clickjacking.XFrameOptionsMiddleware',
> ]
>
> But when I visit /admin I get an Attribute Error with a traceback that 
> lists 
>
> Installed Middleware:
> ['django.middleware.common.CommonMiddleware',
>  'django.middleware.csrf.CsrfViewMiddleware']
>
> And Request_Information - Settings that lists: 
> MIDDLEWARE_CLASSES 
>
> ['django.middleware.common.CommonMiddleware',
>  'django.middleware.csrf.CsrfViewMiddleware']
>
>
> I am thinking of editing my settings file to read MIDDLEWARE_CLASSES 
> instead of MIDDLEWARE (because of stack-overflow articles) but according to 
> the Django Documentation that will only sweep the problem under the rug 
> rather than addressing the issue.  I don't see why, at this point, I should 
> deviate from the default settings.  Or, what caused the problem in the 
> first place.
>
> Any help would be appreciated.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3eebfc50-1d50-41a0-93ba-c7a1a6ab8460%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to