mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
5c1143910e
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
22 lines
625 B
Python
22 lines
625 B
Python
from django.conf.urls import patterns, url
|
|
from django.contrib.comments.feeds import LatestCommentFeed
|
|
|
|
from .custom_comments import views
|
|
|
|
|
|
feeds = {
|
|
'comments': LatestCommentFeed,
|
|
}
|
|
|
|
urlpatterns = patterns('',
|
|
url(r'^post/$', views.custom_submit_comment),
|
|
url(r'^flag/(\d+)/$', views.custom_flag_comment),
|
|
url(r'^delete/(\d+)/$', views.custom_delete_comment),
|
|
url(r'^approve/(\d+)/$', views.custom_approve_comment),
|
|
url(r'^cr/(\d+)/(.+)/$', 'django.contrib.contenttypes.views.shortcut', name='comments-url-redirect'),
|
|
)
|
|
|
|
urlpatterns += patterns('',
|
|
(r'^rss/comments/$', LatestCommentFeed()),
|
|
)
|