2011-05-02 45 views
1

http://code.google.com/p/django-threadedcomments/,I已將以下博客應用程序與我的網站集成在一起。在URLs.py中,我有以下內容,我的問題是什麼是我必須首先與..從django博客的URL開始

from django.conf.urls.defaults import * 
    from threadedcomments.models import FreeThreadedComment 
    import views 

    free = {'model' : FreeThreadedComment} 

    urlpatterns = patterns('', 
     ### Comments ### 
     url(r'^comment/(?P<content_type>\d+)/(?P<object_id>\d+)/$', views.comment, name="tc_comment"), 
     url(r'^comment/(?P<content_type>\d+)/(?P<object_id>\d+)/(?P<parent_id>\d+)/$', views.comment, name="tc_comment_parent"), 
     url(r'^comment/(?P<object_id>\d+)/delete/$', views.comment_delete, name="tc_comment_delete"), 
     url(r'^comment/(?P<edit_id>\d+)/edit/$', views.comment, name="tc_comment_edit"), 

     ### Comments (AJAX) ### 
     url(r'^comment/(?P<content_type>\d+)/(?P<object_id>\d+)/(?P<ajax>json|xml)/$', views.comment, name="tc_comment_ajax"), 
     url(r'^comment/(?P<content_type>\d+)/(?P<object_id>\d+)/(?P<parent_id>\d+)/(?P<ajax>json|xml)/$', views.comment, name="tc_comment_parent_ajax"), 
     url(r'^comment/(?P<edit_id>\d+)/edit/(?P<ajax>json|xml)/$', views.comment, name="tc_comment_edit_ajax"), 

     ### Free Comments ### 
     url(r'^freecomment/(?P<content_type>\d+)/(?P<object_id>\d+)/$', views.free_comment, name="tc_free_comment"), 
     url(r'^freecomment/(?P<content_type>\d+)/(?P<object_id>\d+)/(?P<parent_id>\d+)/$', views.free_comment, name="tc_free_comment_parent"), 
     url(r'^freecomment/(?P<object_id>\d+)/delete/$', views.comment_delete, free, name="tc_free_comment_delete"), 
     url(r'^freecomment/(?P<edit_id>\d+)/edit/$', views.free_comment, name="tc_free_comment_edit"), 

     ### Free Comments (AJAX) ### 
     url(r'^freecomment/(?P<content_type>\d+)/(?P<object_id>\d+)/(?P<ajax>json|xml)/$', views.free_comment, name="tc_free_comment_ajax"), 
     url(r'^freecomment/(?P<content_type>\d+)/(?P<object_id>\d+)/(?P<parent_id>\d+)/(?P<ajax>json|xml)/$', views.free_comment, name="tc_free_comment_parent_ajax"), 
     url(r'^freecomment/(?P<edit_id>\d+)/edit/(?P<ajax>json|xml)/$', views.free_comment, name="tc_free_comment_edit_ajax"), 
) 

回答

1

django threadedcomments不是一個博客應用程序,它是一個線程評論應用程序。

####################### 
django-threadedcomments 
####################### 

Django-threadedcomments is a simple yet flexible threaded commenting system for 
Django. What it means to say that they are *threaded* is that commenters can 
reply not only to the original item, but to other comments as well. It becomes 
near-trivial to create a system similar to what Reddit or Digg have in their 
comments sections. 

沒有「起始頁面」,您只需使用頁面中的線索評論標籤向模型實例添加註釋。

+0

但是項目中的模板頁面很少嗎?這是什麼意思.. – Rajeev 2011-05-02 07:11:48

+0

螺紋註釋應用程序中的模板用於在頁面上顯示註釋。它們在使用線索評論模板標籤時使用。如果您正在尋找博客應用程序,請查看http://www.djangopackages.com/grids/g/blogs/ – DTing 2011-05-02 08:58:14