annotate forums/urls.py @ 1155:0733a0450afe

Update to Foundation 6.3.0.
author Brian Neal <bgneal@gmail.com>
date Mon, 16 Jan 2017 13:19:24 -0600
parents 5ba2508939f7
children
rev   line source
bgneal@81 1 """
bgneal@81 2 URLs for the forums application.
bgneal@81 3 """
bgneal@1028 4 from django.conf.urls import url
bgneal@81 5
bgneal@1028 6 import forums.views.attachments as attachments
bgneal@1028 7 import forums.views.favorites as favorites
bgneal@1028 8 import forums.views.main as main
bgneal@1028 9 import forums.views.spam as spam
bgneal@1028 10 import forums.views.subscriptions as subscriptions
bgneal@83 11
bgneal@232 12
bgneal@1028 13 urlpatterns = [
bgneal@1028 14 url(r'^$', main.index, name='forums-index'),
bgneal@1028 15 url(r'^catchup/$', main.catchup_all, name='forums-catchup_all'),
bgneal@1028 16 url(r'^new-topic-success/(?P<tid>\d+)$', main.new_topic_thanks, name='forums-new_topic_thanks'),
bgneal@1028 17 url(r'^topic/(?P<id>\d+)/$', main.topic_index, name='forums-topic_index'),
bgneal@1028 18 url(r'^topic/(?P<id>\d+)/unread/$', main.topic_unread, name='forums-topic_unread'),
bgneal@1028 19 url(r'^topic/(?P<id>\d+)/latest/$', main.topic_latest, name='forums-topic_latest'),
bgneal@1028 20 url(r'^topic/active/(\d+)/$', main.active_topics, name='forums-active_topics'),
bgneal@1028 21 url(r'^delete-post/$', main.delete_post, name='forums-delete_post'),
bgneal@1028 22 url(r'^edit/(?P<id>\d+)/$', main.edit_post, name='forums-edit_post'),
bgneal@1028 23 url(r'^flag-post/$', main.flag_post, name='forums-flag_post'),
bgneal@1028 24 url(r'^forum/(?P<slug>[\w\d-]+)/$', main.forum_index, name='forums-forum_index'),
bgneal@1028 25 url(r'^forum/(?P<slug>[\w\d-]+)/catchup/$', main.forum_catchup, name='forums-catchup'),
bgneal@1028 26 url(r'^forum/(?P<slug>[\w\d-]+)/new-topic/$', main.new_topic, name='forums-new_topic'),
bgneal@1028 27 url(r'^mod/forum/(?P<slug>[\w\d-]+)/$', main.mod_forum, name='forums-mod_forum'),
bgneal@1028 28 url(r'^mod/topic/delete/(\d+)/$', main.mod_topic_delete, name='forums-mod_topic_delete'),
bgneal@1028 29 url(r'^mod/topic/lock/(\d+)/$', main.mod_topic_lock, name='forums-mod_topic_lock'),
bgneal@1028 30 url(r'^mod/topic/move/(\d+)/$', main.mod_topic_move, name='forums-mod_topic_move'),
bgneal@1028 31 url(r'^mod/topic/split/(\d+)/$', main.mod_topic_split, name='forums-mod_topic_split'),
bgneal@1028 32 url(r'^mod/topic/stick/(\d+)/$', main.mod_topic_stick, name='forums-mod_topic_stick'),
bgneal@1028 33 url(r'^my-posts/$', main.my_posts, name='forums-my_posts'),
bgneal@1028 34 url(r'^post/(\d+)/$', main.goto_post, name='forums-goto_post'),
bgneal@1028 35 url(r'^post/ip/(\d+)/$', main.post_ip_info, name='forums-post_ip_info'),
bgneal@1028 36 url(r'^post/new/(?P<topic_id>\d+)/$', main.new_post, name='forums-new_post'),
bgneal@1028 37 url(r'^posts/(?P<username>[\w.@+-]{1,30})/$', main.posts_for_user, name='forums-posts_for_user'),
bgneal@1028 38 url(r'^quick-reply/$', main.quick_reply_ajax, name='forums-quick_reply'),
bgneal@1028 39 url(r'^unanswered/$', main.unanswered_topics, name='forums-unanswered_topics'),
bgneal@1028 40 url(r'^unread/$', main.unread_topics, name='forums-unread_topics'),
bgneal@212 41
bgneal@1028 42 url(r'^favorite/(\d+)/$', favorites.favorite_topic, name='forums-favorite_topic'),
bgneal@1028 43 url(r'^favorites/$', favorites.manage_favorites, name='forums-manage_favorites'),
bgneal@1028 44 url(r'^favorites/(\d+)/$', favorites.favorites_status, name='forums-favorites_status'),
bgneal@1028 45 url(r'^unfavorite/(\d+)/$', favorites.unfavorite_topic, name='forums-unfavorite_topic'),
bgneal@285 46
bgneal@1028 47 url(r'^subscribe/(\d+)/$', subscriptions.subscribe_topic, name='forums-subscribe_topic'),
bgneal@1028 48 url(r'^subscriptions/$', subscriptions.manage_subscriptions, name='forums-manage_subscriptions'),
bgneal@1028 49 url(r'^subscriptions/(\d+)/$', subscriptions.subscription_status, name='forums-subscription_status'),
bgneal@1028 50 url(r'^unsubscribe/(\d+)/$', subscriptions.unsubscribe_topic, name='forums-unsubscribe_topic'),
bgneal@1028 51
bgneal@1028 52 url(r'^spammer/(\d+)/$', spam.spammer, name='forums-spammer'),
bgneal@1028 53 url(r'^spammer/nailed/(\d+)/$', spam.spammer_nailed, name='forums-spammer_nailed'),
bgneal@1028 54 url(r'^stranger/(\d+)/$', spam.stranger, name='forums-stranger'),
bgneal@1028 55
bgneal@1028 56 url(r'^fetch_attachments/$', attachments.fetch_attachments, name='forums-fetch_attachments'),
bgneal@1028 57 ]