Commit 7f91353678211e3e001e85f3cc8831e6047a61f8

Authored by Collin Anderson
1 parent f63f2619

remove deprecated patterns() in docs

... ... @@ -140,14 +140,14 @@ enable it in your project's ``urls.py``:
140 140
141 141 .. code-block:: python
142 142
143   - from django.conf.urls import patterns
  143 + from django.conf.urls import url
144 144 from django_comments.feeds import LatestCommentFeed
145 145
146   - urlpatterns = patterns('',
  146 + urlpatterns = [
147 147 # ...
148   - (r'^feeds/latest/$', LatestCommentFeed()),
  148 + url(r'^feeds/latest/$', LatestCommentFeed()),
149 149 # ...
150   - )
  150 + ]
151 151
152 152 Now you should have the latest comment feeds being served off ``/feeds/latest/``.
153 153
... ...
... ... @@ -23,11 +23,11 @@ follow these steps:
23 23
24 24 .. code-block:: python
25 25
26   - urlpatterns = patterns('',
  26 + urlpatterns = [
27 27 ...
28   - (r'^comments/', include('django_comments.urls')),
  28 + url(r'^comments/', include('django_comments.urls')),
29 29 ...
30   - )
  30 + ]
31 31
32 32 #. If your project had :doc:`customized the comments framework
33 33 </custom>`, then update your imports to use the ``django_comments``
... ...
... ... @@ -19,11 +19,11 @@ To get started using the ``comments`` app, follow these steps:
19 19
20 20 .. code-block:: python
21 21
22   - urlpatterns = patterns('',
  22 + urlpatterns = [
23 23 ...
24   - (r'^comments/', include('django_comments.urls')),
  24 + url(r'^comments/', include('django_comments.urls')),
25 25 ...
26   - )
  26 + ]
27 27
28 28 #. Use the `comment template tags`_ below to embed comments in your
29 29 templates.
... ...
Please register or login to post a comment