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.
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>
* 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>