summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/comments/example.txt29
1 files changed, 23 insertions, 6 deletions
diff --git a/docs/ref/contrib/comments/example.txt b/docs/ref/contrib/comments/example.txt
index 424bdb13f5..921fe03ffa 100644
--- a/docs/ref/contrib/comments/example.txt
+++ b/docs/ref/contrib/comments/example.txt
@@ -143,19 +143,36 @@ enable it in your project's ``urls.py``:
from django.conf.urls.defaults import *
from django.contrib.comments.feeds import LatestCommentFeed
- feeds = {
- 'latest': LatestCommentFeed,
- }
-
urlpatterns = patterns('',
# ...
- (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed',
- {'feed_dict': feeds}),
+ (r'^feeds/latest/$', LatestCommentFeed()),
# ...
)
Now you should have the latest comment feeds being served off ``/feeds/latest/``.
+.. versionchanged:: 1.3
+
+Prior to Django 1.3, the LatestCommentFeed was deployed using the
+syndication feed view:
+
+.. code-block:: python
+
+ from django.conf.urls.defaults import *
+ from django.contrib.comments.feeds import LatestCommentFeed
+
+ feeds = {
+ 'latest': LatestCommentFeed,
+ }
+
+ urlpatterns = patterns('',
+ # ...
+ (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed',
+ {'feed_dict': feeds}),
+ # ...
+ )
+
+
Moderation
==========