Opened 16 months ago

Closed 16 months ago

Last modified 16 months 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 16 months ago by timo

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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

comment:2 Changed 16 months 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