2011-09-11 22:36:16 +00:00
|
|
|
from django.conf.urls import patterns, url
|
2011-01-13 14:51:34 +00:00
|
|
|
from django.contrib.comments.feeds import LatestCommentFeed
|
|
|
|
|
2011-10-13 18:51:33 +00:00
|
|
|
from .custom_comments import views
|
|
|
|
|
|
|
|
|
2011-01-13 14:51:34 +00:00
|
|
|
feeds = {
|
|
|
|
'comments': LatestCommentFeed,
|
|
|
|
}
|
2009-02-23 22:16:26 +00:00
|
|
|
|
2011-10-13 18:51:33 +00:00
|
|
|
urlpatterns = patterns('',
|
|
|
|
url(r'^post/$', views.custom_submit_comment),
|
|
|
|
url(r'^flag/(\d+)/$', views.custom_flag_comment),
|
|
|
|
url(r'^delete/(\d+)/$', views.custom_delete_comment),
|
|
|
|
url(r'^approve/(\d+)/$', views.custom_approve_comment),
|
2012-09-28 12:35:26 +00:00
|
|
|
url(r'^cr/(\d+)/(.+)/$', 'django.contrib.contenttypes.views.shortcut', name='comments-url-redirect'),
|
2009-02-23 22:16:26 +00:00
|
|
|
)
|
|
|
|
|
2011-01-13 14:51:34 +00:00
|
|
|
urlpatterns += patterns('',
|
|
|
|
(r'^rss/comments/$', LatestCommentFeed()),
|
|
|
|
)
|