Debian Codegraph @

tests/testapp/urls.py

raw symbols SCIP
1 from django.contrib.contenttypes.views import shortcut
2 from django.urls import path, re_path
3
4 from django_comments.feeds import LatestCommentFeed
5
6 from custom_comments import views
7
8
9 feeds = {
10 'comments': LatestCommentFeed,
11 }
12
13 urlpatterns = [
14 path('post/', views.custom_submit_comment),
15 path('flag/<int:comment_id>/', views.custom_flag_comment),
16 path('delete/<int:comment_id>/', views.custom_delete_comment),
17 path('approve/<int:comment_id>/', views.custom_approve_comment),
18
19 re_path(r'^cr/(\d+)/(.+)/$', shortcut, name='comments-url-redirect'),
20
21 path('rss/comments/', LatestCommentFeed()),
22 ]