Serotonin Storm

source>mptt_comments>urls.py
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from django.conf.urls.defaults import *
from django.contrib.comments.urls import urlpatterns as contrib_comments_urlpatterns
from django.conf import settings

urlpatterns = patterns('mptt_comments.views',
    url(r'^new/(\d+)/$',
        'new_comment',
        name='new-comment'
    ),
    url(r'^reply/(\d+)/$',
        'new_comment',
        name='comment-reply'
    ),
    url(r'^post/$',
        'post_comment',
        name='comments-post-comment'
    ),
    url(r'^posted-ajax/$',
        'comment_done_ajax',
        name='comments-comment-done-ajax'
    ),
    url(r'^more/(\d+)/$',
        'comments_more',
        name='comments-more'
    ),
    url(r'^replies/(\d+)/$',
        'comments_subtree',
        name='comments-subtree'
    ),
    url(r'^detail/(\d+)/$',
        'comments_subtree',
        name='comment-detail',
        kwargs={'include_self': True, 'include_ancestors': True}
    )
    
)

urlpatterns += contrib_comments_urlpatterns