Changes between Initial Version and Version 1 of Ticket #28631


Ignore:
Timestamp:
Sep 25, 2017, 7:31:12 AM (7 years ago)
Author:
Sjoerd Job Postmus
Comment:

Figured out that one should be using url(..., admin.site.urls) instead of url(..., include(admin.site.urls)).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28631

    • Property Resolutioninvalid
    • Property Severity Release blockerNormal
    • Property Status newclosed
    • Property Type BugUncategorized
  • Ticket #28631 – Description

    initial v1  
    33However, looking at the definition of `admin.site.urls`: https://github.com/django/django/blob/master/django/contrib/admin/sites.py#L284 , we see it returning a 3-tuple.
    44
    5 ```
     5{{{
    66ImproperlyConfigured at /
    77Passing a 3-tuple to include() is not supported. Pass a 2-tuple containing the list of patterns and app_name, and provide the namespace argument to include() instead.
    8 ```
     8}}}
Back to Top