[Django] #33777: from django.conf.urls import include is missing

7 views
Skip to first unread message

Django

unread,
Jun 12, 2022, 1:40:27 AM6/12/22
to django-...@googlegroups.com
#33777: from django.conf.urls import include is missing
-----------------------------------------+------------------------
Reporter: Karsten | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 4.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
{{{#!python
from django.contrib import admin
from django.urls import include, path
+from django.conf.urls import include

urlpatterns = [
path('polls/', include('polls.urls')),
path('admin/', admin.site.urls),
]
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33777>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 12, 2022, 5:26:54 AM6/12/22
to django-...@googlegroups.com
#33777: from django.conf.urls import include is missing
-------------------------------+--------------------------------------
Reporter: Karsten | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 4.0
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Tim Graham):

* status: new => closed
* resolution: => invalid


Comment:

The second line has `from django.urls import include` which is sufficient.

--
Ticket URL: <https://code.djangoproject.com/ticket/33777#comment:1>

Reply all
Reply to author
Forward
0 new messages