#25525 closed Uncategorized (fixed)
Docstring in default urls.py file uses `include()` without mentionning where to import it from
Reported by: | Baptiste Mispelon | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | 1.9a1 |
Severity: | Release blocker | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
1e82094f1b6690018228e688303295f83e1c3d9a removed the need for include
to be imported in the default urls.py
file but the instructions in the docstring of that module still make use of it [1].
From what I understand, the list could now be:
1. Add an import: from blog import urls as blog_urls 2. Add a URL to urlpatterns: url(r'^blog/', blog_urls)
[1] https://github.com/django/django/blob/master/django/conf/project_template/project_name/urls.py#L14
Change History (3)
comment:1 by , 9 years ago
Summary: | Default urls.py documents an unnecessary use of `include()` → Docstring in default urls.py file uses `include()` without mentionning where to import it from |
---|
Note:
See TracTickets
for help on using tickets.
Hmm, it seems like I misunderstood the new feature...
The
include()
is still very much necessary so I think we should just document where to import it from: