#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.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/048.85db752716a5276799e403cf3936208a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.