#25525: Docstring in default urls.py file uses `include()` without mentionning
where to import it from
---------------------------------+--------------------------------------
Reporter: bmispelon | Owner: nobody
Type: Uncategorized | Status: new
Component: Core (Other) | Version: 1.9a1
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
---------------------------------+--------------------------------------
Comment (by bmispelon):
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:
{{{
1. Add an import: from blog import urls as blog_urls
2. Import the include function: from django.conf.urls import url, include
3. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls))
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25525#comment:1>
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/067.67d255e8e5ab7682976a7813e09c6859%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.