from __future__ import absolute_import

from django.conf.urls import patterns, url

from django_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()),
)

[((253, 296), 'django.conf.urls.url', 'url', (['"""^post/$"""', 'views.custom_submit_comment'], {}), "('^post/$', views.custom_submit_comment)\n", (256, 296), False, 'from django.conf.urls import patterns, url\n'), ((303, 351), 'django.conf.urls.url', 'url', (['"""^flag/(\\\\d+)/$"""', 'views.custom_flag_comment'], {}), "('^flag/(\\\\d+)/$', views.custom_flag_comment)\n", (306, 351), False, 'from django.conf.urls import patterns, url\n'), ((357, 409), 'django.conf.urls.url', 'url', (['"""^delete/(\\\\d+)/$"""', 'views.custom_delete_comment'], {}), "('^delete/(\\\\d+)/$', views.custom_delete_comment)\n", (360, 409), False, 'from django.conf.urls import patterns, url\n'), ((415, 469), 'django.conf.urls.url', 'url', (['"""^approve/(\\\\d+)/$"""', 'views.custom_approve_comment'], {}), "('^approve/(\\\\d+)/$', views.custom_approve_comment)\n", (418, 469), False, 'from django.conf.urls import patterns, url\n'), ((475, 580), 'django.conf.urls.url', 'url', (['"""^cr/(\\\\d+)/(.+)/$"""', '"""django.contrib.contenttypes.views.shortcut"""'], {'name': '"""comments-url-redirect"""'}), "('^cr/(\\\\d+)/(.+)/$', 'django.contrib.contenttypes.views.shortcut', name\n    ='comments-url-redirect')\n", (478, 580), False, 'from django.conf.urls import patterns, url\n'), ((633, 652), 'django_comments.feeds.LatestCommentFeed', 'LatestCommentFeed', ([], {}), '()\n', (650, 652), False, 'from django_comments.feeds import LatestCommentFeed\n')]