Ticket #9956: urls.py

File urls.py, 1.0 KB (added by james_stevenson, 16 years ago)

patch to django.contrib.comments.urls to match comment object_pks with "-" characters

Line 
1from django.conf.urls.defaults import *
2from django.conf import settings
3
4urlpatterns = 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
16urlpatterns += patterns('',
17 url(r'^cr/(\d+)/((\w|-)+)/$', 'django.views.defaults.shortcut', name='comments-url-redirect'),
18)
19
Back to Top