2011-09-12 06:36:16 +08:00
|
|
|
from django.conf.urls import patterns, url
|
2011-01-13 22:51:34 +08:00
|
|
|
from django.contrib.comments.feeds import LatestCommentFeed
|
|
|
|
|
|
|
|
feeds = {
|
|
|
|
'comments': LatestCommentFeed,
|
|
|
|
}
|
2009-02-24 06:16:26 +08:00
|
|
|
|
|
|
|
urlpatterns = patterns('regressiontests.comment_tests.custom_comments.views',
|
|
|
|
url(r'^post/$', 'custom_submit_comment'),
|
|
|
|
url(r'^flag/(\d+)/$', 'custom_flag_comment'),
|
|
|
|
url(r'^delete/(\d+)/$', 'custom_delete_comment'),
|
|
|
|
url(r'^approve/(\d+)/$', 'custom_approve_comment'),
|
|
|
|
)
|
|
|
|
|
2011-01-13 22:51:34 +08:00
|
|
|
urlpatterns += patterns('',
|
|
|
|
(r'^rss/comments/$', LatestCommentFeed()),
|
|
|
|
)
|