summaryrefslogtreecommitdiff
path: root/app/lib/django_comments/urls.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-09-07 17:22:24 +0000
committerluxagraf <sng@luxagraf.net>2015-09-07 17:22:24 +0000
commit6cf2f5b09f3753351abc291cc70c6ae7e1126078 (patch)
treeebd14d3fd9b425eb8d8a88a0cae4034dddf28061 /app/lib/django_comments/urls.py
parent6ff5d738b9442c92fa6cc36477a3e099eb516f7d (diff)
added comments to my apps, fixed uwsgi config, fixed bug in photo template jquery url, added piwik stats code
Diffstat (limited to 'app/lib/django_comments/urls.py')
-rw-r--r--app/lib/django_comments/urls.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/lib/django_comments/urls.py b/app/lib/django_comments/urls.py
new file mode 100644
index 0000000..e02bab0
--- /dev/null
+++ b/app/lib/django_comments/urls.py
@@ -0,0 +1,16 @@
+from django.conf.urls import patterns, url
+
+urlpatterns = patterns('django_comments.views',
+ url(r'^post/$', 'comments.post_comment', name='comments-post-comment'),
+ url(r'^posted/$', 'comments.comment_done', name='comments-comment-done'),
+ url(r'^flag/(\d+)/$', 'moderation.flag', name='comments-flag'),
+ url(r'^flagged/$', 'moderation.flag_done', name='comments-flag-done'),
+ url(r'^delete/(\d+)/$', 'moderation.delete', name='comments-delete'),
+ url(r'^deleted/$', 'moderation.delete_done', name='comments-delete-done'),
+ url(r'^approve/(\d+)/$', 'moderation.approve', name='comments-approve'),
+ url(r'^approved/$', 'moderation.approve_done', name='comments-approve-done'),
+)
+
+urlpatterns += patterns('',
+ url(r'^cr/(\d+)/(.+)/$', 'django.contrib.contenttypes.views.shortcut', name='comments-url-redirect'),
+)