diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index ac517e8..e6e5d57 100644
a
|
b
|
In this example, we register the default ``AdminSite`` instance
|
1472 | 1472 | ``django.contrib.admin.site`` at the URL ``/admin/`` :: |
1473 | 1473 | |
1474 | 1474 | # urls.py |
1475 | | from django.conf.urls.defaults import * |
| 1475 | from django.conf.urls.defaults import patterns, url, include |
1476 | 1476 | from django.contrib import admin |
1477 | 1477 | |
1478 | 1478 | admin.autodiscover() |
… |
… |
In this example, we register the ``AdminSite`` instance
|
1488 | 1488 | ``myproject.admin.admin_site`` at the URL ``/myadmin/`` :: |
1489 | 1489 | |
1490 | 1490 | # urls.py |
1491 | | from django.conf.urls.defaults import * |
| 1491 | from django.conf.urls.defaults import patterns, url, include |
1492 | 1492 | from myproject.admin import admin_site |
1493 | 1493 | |
1494 | 1494 | urlpatterns = patterns('', |
… |
… |
separate versions of the admin site -- using the ``AdminSite`` instances
|
1516 | 1516 | respectively:: |
1517 | 1517 | |
1518 | 1518 | # urls.py |
1519 | | from django.conf.urls.defaults import * |
| 1519 | from django.conf.urls.defaults import patterns, url, include |
1520 | 1520 | from myproject.admin import basic_site, advanced_site |
1521 | 1521 | |
1522 | 1522 | urlpatterns = patterns('', |
diff --git a/docs/ref/contrib/comments/example.txt b/docs/ref/contrib/comments/example.txt
index 424bdb1..98094c8 100644
a
|
b
|
enable it in your project's ``urls.py``:
|
140 | 140 | |
141 | 141 | .. code-block:: python |
142 | 142 | |
143 | | from django.conf.urls.defaults import * |
| 143 | from django.conf.urls.defaults import patterns, url, include |
144 | 144 | from django.contrib.comments.feeds import LatestCommentFeed |
145 | 145 | |
146 | 146 | feeds = { |
diff --git a/docs/ref/contrib/formtools/form-wizard.txt b/docs/ref/contrib/formtools/form-wizard.txt
index 370fbdc..e42c648 100644
a
|
b
|
deploy the new :class:`FormWizard` object a URL in ``urls.py``. The
|
192 | 192 | wizard takes a list of your :class:`~django.forms.Form` objects as |
193 | 193 | arguments when you instantiate the Wizard:: |
194 | 194 | |
195 | | from django.conf.urls.defaults import * |
| 195 | from django.conf.urls.defaults import patterns, url, include |
196 | 196 | from testapp.forms import ContactForm1, ContactForm2, ContactWizard |
197 | 197 | |
198 | 198 | urlpatterns = patterns('', |
diff --git a/docs/ref/contrib/gis/tutorial.txt b/docs/ref/contrib/gis/tutorial.txt
index 9deeb78..4c1f8df 100644
a
|
b
|
Let's dive in again -- create a file called ``admin.py`` inside the
|
702 | 702 | Next, edit your ``urls.py`` in the ``geodjango`` project folder to look |
703 | 703 | as follows:: |
704 | 704 | |
705 | | from django.conf.urls.defaults import * |
| 705 | from django.conf.urls.defaults import patterns, url, include |
706 | 706 | from django.contrib.gis import admin |
707 | 707 | |
708 | 708 | admin.autodiscover() |
diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt
index b58b55c..74cfbf9 100644
a
|
b
|
Example
|
241 | 241 | |
242 | 242 | Here's an example of a :doc:`URLconf </topics/http/urls>` using both:: |
243 | 243 | |
244 | | from django.conf.urls.defaults import * |
| 244 | from django.conf.urls.defaults import patterns, url, include |
245 | 245 | from django.contrib.sitemaps import FlatPageSitemap, GenericSitemap |
246 | 246 | from blog.models import Entry |
247 | 247 | |
diff --git a/docs/ref/contrib/syndication.txt b/docs/ref/contrib/syndication.txt
index 04f14b5..5400346 100644
a
|
b
|
latest five news items::
|
80 | 80 | To connect a URL to this feed, put an instance of the Feed object in |
81 | 81 | your :doc:`URLconf </topics/http/urls>`. For example:: |
82 | 82 | |
83 | | from django.conf.urls.defaults import * |
| 83 | from django.conf.urls.defaults import patterns, url, include |
84 | 84 | from myproject.feeds import LatestEntriesFeed |
85 | 85 | |
86 | 86 | urlpatterns = patterns('', |
… |
… |
Here's a full example::
|
327 | 327 | |
328 | 328 | And the accompanying URLconf:: |
329 | 329 | |
330 | | from django.conf.urls.defaults import * |
| 330 | from django.conf.urls.defaults import patterns, url, include |
331 | 331 | from myproject.feeds import RssSiteNewsFeed, AtomSiteNewsFeed |
332 | 332 | |
333 | 333 | urlpatterns = patterns('', |
diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt
index 88fd4e1..7fbccf5 100644
a
|
b
|
reference the name rather than the view function. A named URL
|
506 | 506 | pattern is defined by replacing the pattern tuple by a call to |
507 | 507 | the ``url`` function):: |
508 | 508 | |
509 | | from django.conf.urls.defaults import * |
| 509 | from django.conf.urls.defaults import patterns, url, include |
510 | 510 | |
511 | 511 | url(r'^people/(\d+)/$', |
512 | 512 | 'django.views.generic.list_detail.object_detail', |