[Django] #22832: admin.autodiscover() missing

9 views
Skip to first unread message

Django

unread,
Jun 13, 2014, 2:55:58 PM6/13/14
to django-...@googlegroups.com
#22832: admin.autodiscover() missing
-------------------------------+--------------------
Reporter: Matej | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.6
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
Hi,
in the geoDjango tutorial:
https://docs.djangoproject.com/en/dev/ref/contrib/gis/tutorial/
close to the bottom of the page there is this block of code:

from django.conf.urls import url, include
from django.contrib.gis import admin

urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
]

that should have also included the following line:
admin.autodiscover()

otherwise, the admin page says: you don't have permission to edit
anything.

Matej

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

Django

unread,
Jun 13, 2014, 3:02:32 PM6/13/14
to django-...@googlegroups.com
#22832: admin.autodiscover() missing
-------------------------------+--------------------------------------
Reporter: Matej | Owner: nobody
Type: Uncategorized | Status: closed
Component: Documentation | Version: 1.6
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
-------------------------------+--------------------------------------

Comment (by valberg):

Due to the new app loading mechanism introduced in 1.7, django will do the
autodiscover automatically.

See https://docs.djangoproject.com/en/1.7/ref/applications/ for more about
the app loading process.

And the release notes https://docs.djangoproject.com/en/1.7/releases/1.7
/#app-loading-refactor for information on what effects this new mechanism
has.

--
Ticket URL: <https://code.djangoproject.com/ticket/22832#comment:2>

Django

unread,
Jun 13, 2014, 3:01:58 PM6/13/14
to django-...@googlegroups.com
#22832: admin.autodiscover() missing
-------------------------------+--------------------------------------
Reporter: Matej | Owner: nobody
Type: Uncategorized | Status: closed
Component: Documentation | Version: 1.6
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 timo):

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


Comment:

Please ​https://docs.djangoproject.com/en/1.6/ref/contrib/gis/tutorial/ if
you are using Django 1.6. That line is no longer necessary in Django 1.7+.

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

Reply all
Reply to author
Forward
0 new messages