2011-09-12 06:36:16 +08:00
|
|
|
from django.conf.urls import patterns, url
|
2008-08-26 06:14:22 +08:00
|
|
|
|
|
|
|
urlpatterns = patterns('django.contrib.comments.views',
|
|
|
|
url(r'^post/$', 'comments.post_comment', name='comments-post-comment'),
|
|
|
|
url(r'^posted/$', 'comments.comment_done', name='comments-comment-done'),
|
|
|
|
url(r'^flag/(\d+)/$', 'moderation.flag', name='comments-flag'),
|
|
|
|
url(r'^flagged/$', 'moderation.flag_done', name='comments-flag-done'),
|
|
|
|
url(r'^delete/(\d+)/$', 'moderation.delete', name='comments-delete'),
|
|
|
|
url(r'^deleted/$', 'moderation.delete_done', name='comments-delete-done'),
|
|
|
|
url(r'^approve/(\d+)/$', 'moderation.approve', name='comments-approve'),
|
|
|
|
url(r'^approved/$', 'moderation.approve_done', name='comments-approve-done'),
|
|
|
|
)
|
|
|
|
|
2008-08-27 15:04:58 +08:00
|
|
|
urlpatterns += patterns('',
|
2010-10-07 06:56:52 +08:00
|
|
|
url(r'^cr/(\d+)/(.+)/$', 'django.contrib.contenttypes.views.shortcut', name='comments-url-redirect'),
|
2008-08-27 15:04:58 +08:00
|
|
|
)
|