mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +00:00
Fixed #14675 -- Completed removal of from django.conf.urls.default import * usage.
This applies to both our own [test] code and documentation examples. Also: * Moved the functions and handlers from `django.conf.urls.defaults` up to `django.conf.urls` deprecating the former module. * Added documentation for `handler403`. * Tweaked the URLs topic document a bit. Thanks to pupeno and cdestigter for their great work contributing patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16818 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
fd90453462
commit
26b8122087
88 changed files with 243 additions and 198 deletions
|
|
@ -524,7 +524,7 @@ pattern, it's possible to give a name to a pattern, and then reference the name
|
|||
rather than the view function. A named URL pattern is defined by replacing the
|
||||
pattern tuple by a call to the ``url`` function)::
|
||||
|
||||
from django.conf.urls.defaults import *
|
||||
from django.conf.urls import patterns, url, include
|
||||
|
||||
url(r'^people/(\d+)/$', 'blog_views.generic_detail', name='people_view'),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue