PageRenderTime 780ms CodeModel.GetById 764ms RepoModel.GetById 0ms 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
Possible License(s): BSD-3-Clause
  1. from django.conf.urls.defaults import *
  2. from django.contrib.comments.feeds import LatestCommentFeed
  3. feeds = {
  4. 'comments': LatestCommentFeed,
  5. }
  6. urlpatterns = patterns('regressiontests.comment_tests.custom_comments.views',
  7. url(r'^post/$', 'custom_submit_comment'),
  8. url(r'^flag/(\d+)/$', 'custom_flag_comment'),
  9. url(r'^delete/(\d+)/$', 'custom_delete_comment'),
  10. url(r'^approve/(\d+)/$', 'custom_approve_comment'),
  11. )
  12. urlpatterns += patterns('',
  13. (r'^rss/legacy/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
  14. (r'^rss/comments/$', LatestCommentFeed()),
  15. )