1 | from django.conf.urls.defaults import *
|
---|
2 | from django.conf import settings
|
---|
3 |
|
---|
4 | urlpatterns = patterns('django.contrib.comments.views',
|
---|
5 | url(r'^post/$', 'comments.post_comment', name='comments-post-comment'),
|
---|
6 | url(r'^posted/$', 'comments.comment_done', name='comments-comment-done'),
|
---|
7 | url(r'^flag/(\d+)/$', 'moderation.flag', name='comments-flag'),
|
---|
8 | url(r'^flagged/$', 'moderation.flag_done', name='comments-flag-done'),
|
---|
9 | url(r'^delete/(\d+)/$', 'moderation.delete', name='comments-delete'),
|
---|
10 | url(r'^deleted/$', 'moderation.delete_done', name='comments-delete-done'),
|
---|
11 | url(r'^moderate/$', 'moderation.moderation_queue', name='comments-moderation-queue'),
|
---|
12 | url(r'^approve/(\d+)/$', 'moderation.approve', name='comments-approve'),
|
---|
13 | url(r'^approved/$', 'moderation.approve_done', name='comments-approve-done'),
|
---|
14 | )
|
---|
15 |
|
---|
16 | urlpatterns += patterns('',
|
---|
17 | url(r'^cr/(\d+)/((\w|-)+)/$', 'django.views.defaults.shortcut', name='comments-url-redirect'),
|
---|
18 | )
|
---|
19 |
|
---|