1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
from django.urls import path, re_path
from django.contrib.contenttypes.views import shortcut
from .views.comments import post_comment, comment_done
from .views.moderation import (
flag, flag_done, delete, delete_done, approve, approve_done,
)
urlpatterns = [
re_path(r'^post/$', post_comment, name='comments-post-comment'),
re_path(r'^posted/$', comment_done, name='comments-comment-done'),
re_path(r'^flag/(\d+)/$', flag, name='comments-flag'),
re_path(r'^flagged/$', flag_done, name='comments-flag-done'),
re_path(r'^delete/(\d+)/$', delete, name='comments-delete'),
re_path(r'^deleted/$', delete_done, name='comments-delete-done'),
re_path(r'^approve/(\d+)/$', approve, name='comments-approve'),
re_path(r'^approved/$', approve_done, name='comments-approve-done'),
re_path(r'^cr/(\d+)/(.+)/$', shortcut, name='comments-url-redirect'),
]
|