#21895: Probably erroneous documentation about new contrib.admin and
admin.autodiscover
-------------------------------+-------------------------
     Reporter:  claus          |      Owner:  nobody
         Type:  Bug            |     Status:  new
    Component:  Documentation  |    Version:  1.7-alpha-1
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+-------------------------
 After upgrading a project from 1.6.1 to 1.7a1 I removed the call to
 ''autodiscover()'' from my URLconf, as indicated by
 [https://docs.djangoproject.com/en/dev/releases/1.7/#app-loading-refactor
 this section] in the release notes:

 {{{
 The admin automatically calls autodiscover() when Django starts. You can
 consequently remove this line from your URLconf.
 }}}

 This does not work in my upgraded application; without the call to
 autodiscover superusers don't have any permissions in the admin interface.
 In case the above paragraph only applies to apps created using 1.7a1, then
 mentioning the removal of code seems at least ambiguous.

 [https://docs.djangoproject.com/en/dev/releases/1.7/#start-up-sequence
 Later on] the release notes read:

 {{{
 django.contrib.admin will now automatically perform autodiscovery of admin
 modules in installed applications. To prevent it, change your
 INSTALLED_APPS to contain 'django.contrib.admin.apps.SimpleAdminConfig'
 instead of 'django.contrib.admin'.
 }}}

 I am not sure if this is correct, after reading some posts on the
 developers list about this it seems to me that ''django.contrib.admin''
 should read ''django.contrib.admin.apps.AdminConfig'' here, if one wants
 to rely on autodiscovery - unfortunately I haven't had time to try this in
 my code yet.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21895>
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.d2fae3cf2e25903eb0e9498b9eb5f573%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to