Ticket #1829: comments-url.diff
File comments-url.diff, 2.2 KB (added by , 18 years ago) |
---|
-
django/contrib/comments/urls/comments.py
1 from django.conf.urls.defaults import *2 3 urlpatterns = patterns('django.contrib.comments.views',4 (r'^post/$', 'comments.post_comment'),5 (r'^postfree/$', 'comments.post_free_comment'),6 (r'^posted/$', 'comments.comment_was_posted'),7 (r'^karma/vote/(?P<comment_id>\d+)/(?P<vote>up|down)/$', 'karma.vote'),8 (r'^flag/(?P<comment_id>\d+)/$', 'userflags.flag'),9 (r'^flag/(?P<comment_id>\d+)/done/$', 'userflags.flag_done'),10 (r'^delete/(?P<comment_id>\d+)/$', 'userflags.delete'),11 (r'^delete/(?P<comment_id>\d+)/done/$', 'userflags.delete_done'),12 ) -
django/contrib/comments/urls.py
1 from django.conf.urls.defaults import * 2 3 urlpatterns = patterns('django.contrib.comments.views', 4 (r'^post/$', 'comments.post_comment'), 5 (r'^postfree/$', 'comments.post_free_comment'), 6 (r'^posted/$', 'comments.comment_was_posted'), 7 (r'^karma/vote/(?P<comment_id>\d+)/(?P<vote>up|down)/$', 'karma.vote'), 8 (r'^flag/(?P<comment_id>\d+)/$', 'userflags.flag'), 9 (r'^flag/(?P<comment_id>\d+)/done/$', 'userflags.flag_done'), 10 (r'^delete/(?P<comment_id>\d+)/$', 'userflags.delete'), 11 (r'^delete/(?P<comment_id>\d+)/done/$', 'userflags.delete_done'), 12 ) -
docs/url_dispatch.txt
333 333 urlpatterns = patterns('', 334 334 (r'^weblog/', include('django_website.apps.blog.urls.blog')), 335 335 (r'^documentation/', include('django_website.apps.docs.urls.docs')), 336 (r'^comments/', include('django.contrib.comments.urls .comments')),336 (r'^comments/', include('django.contrib.comments.urls')), 337 337 ) 338 338 339 339 Note that the regular expressions in this example don't have a ``$``