[Django] #27194: Cannot access admin page by following tutorial

2 views
Skip to first unread message

Django

unread,
Sep 7, 2016, 6:20:38 PM9/7/16
to django-...@googlegroups.com
#27194: Cannot access admin page by following tutorial
-------------------------------+--------------------
Reporter: keksbaecker | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.10
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
If you follow the tutorial up to the
[https://docs.djangoproject.com/en/1.10/intro/tutorial02/ second part] and
try to access the admin panel, then django raises an AttributeError
because //'WSGIRequest' object has no attribute 'user'//.

I have not made any changes to the order of MIDDLEWARE or anything else
that wasn't mentioned in the tutorial in the settings.py and changing the
name from MIDDLEWARE to MIDDLEWARE_CLASSES solves the problem.

It seems like the default installation is somehow broken.

--
Ticket URL: <https://code.djangoproject.com/ticket/27194>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 7, 2016, 6:36:26 PM9/7/16
to django-...@googlegroups.com
#27194: Cannot access admin page by following tutorial
-------------------------------+--------------------------------------
Reporter: keksbaecker | Owner: nobody
Type: Bug | Status: closed
Component: Uncategorized | Version: 1.10
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by timgraham):

* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0


Comment:

I guess you might have created your project with Django 1.10 but are using
Django 1.9 or earlier. Please see TicketClosingReasons/UseSupportChannels
for ways to get help.

--
Ticket URL: <https://code.djangoproject.com/ticket/27194#comment:1>

Reply all
Reply to author
Forward
0 new messages