Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#22832 closed Uncategorized (invalid)

admin.autodiscover() missing

Reported by: Matej Owned by: nobody
Component: Documentation Version: 1.6
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


in the geoDjango 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(,


that should have also included the following line:

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


Change History (2)

comment:1 Changed 4 years ago by Tim Graham

Resolution: invalid
Status: newclosed

Please ​ if you are using Django 1.6. That line is no longer necessary in Django 1.7+.

comment:2 Changed 4 years ago by valberg

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

See for more about the app loading process.

And the release notes for information on what effects this new mechanism has.

Note: See TracTickets for help on using tickets.
Back to Top