Ticket #1829: comments-url.diff

File comments-url.diff, 2.2 KB (added by Jannis Leidel <jl@…>, 18 years ago)

Moved django.contrib.comments.urls.comments to django.contrib.comments.urls

  • 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

     
     1from django.conf.urls.defaults import *
     2
     3urlpatterns = 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

     
    333333    urlpatterns = patterns('',
    334334        (r'^weblog/',        include('django_website.apps.blog.urls.blog')),
    335335        (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')),
    337337    )
    338338
    339339Note that the regular expressions in this example don't have a ``$``
Back to Top