Code

Changes between Version 13 and Version 14 of UsingFreeComment


Ignore:
Timestamp:
03/24/07 22:45:53 (7 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UsingFreeComment

    v13 v14  
    1 = Using Django's Free Comments = 
     1''''''= Using Django's Free Comments = 
    22 
    33Django includes some basic commenting functionality that can save you a ton of time if you want to allow users to add comments to objects such as blog entries or photos. Django's free comments are flexible enough that they can be used on pretty much anything. 
     
    4848=== django.views.generic.list_detail.object_list === 
    4949 
    50 In an object_list template, you can do the following to add the comment count to each of the blog entry listings. The following example assumes you have an app named "blog" with a class called "entry", which has fields called "title", "summary", and has a method called "get_absolute_url" which returns an absolute path to that entry's detail page. 
     50In an object_list template, you can do the following to add the comment count to each of the blog entry listings. The following example assumes you have an app named "blog" with a class called "entry", which has fields called "title", "summary", and has a method called "get_absolute_url" which returns an absolute path to that entry's detail page.   
     51 
     52''Note: The class name should be always be referred to in all lowercase.  For example, if the class contained inside the app named blog were actually named Entry, it would still be referred to as blog.entry.'' 
    5153 
    5254{{{