PageRenderTime 14ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/regressiontests/comment_tests/urls.py

https://code.google.com/p/mango-py/
Python | 18 lines | 15 code | 3 blank | 0 comment | 0 complexity | b427b80e753a5163a1a367d36898e65c MD5 | raw file
 1from django.conf.urls.defaults import *
 2from django.contrib.comments.feeds import LatestCommentFeed
 3
 4feeds = {
 5     'comments': LatestCommentFeed,
 6}
 7
 8urlpatterns = patterns('regressiontests.comment_tests.custom_comments.views',
 9    url(r'^post/$',          'custom_submit_comment'),
10    url(r'^flag/(\d+)/$',    'custom_flag_comment'),
11    url(r'^delete/(\d+)/$',  'custom_delete_comment'),
12    url(r'^approve/(\d+)/$', 'custom_approve_comment'),
13)
14
15urlpatterns += patterns('',
16    (r'^rss/legacy/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
17    (r'^rss/comments/$', LatestCommentFeed()),
18)