Mercurial > public > sg101
comparison gpp/forums/urls.py @ 232:a46788862737
Implement a forum favorites feature for #82
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 01 Aug 2010 21:26:12 +0000 |
parents | fe900598f81c |
children | 8fd4984d5c3b |
comparison
equal
deleted
inserted
replaced
231:a2d388ed106e | 232:a46788862737 |
---|---|
1 """ | 1 """ |
2 URLs for the forums application. | 2 URLs for the forums application. |
3 """ | 3 """ |
4 from django.conf.urls.defaults import * | 4 from django.conf.urls.defaults import * |
5 | 5 |
6 urlpatterns = patterns('forums.views', | 6 urlpatterns = patterns('forums.views.main', |
7 url(r'^$', 'index', name='forums-index'), | 7 url(r'^$', 'index', name='forums-index'), |
8 url(r'^new-topic-success/(?P<tid>\d+)$', 'new_topic_thanks', name='forums-new_topic_thanks'), | 8 url(r'^new-topic-success/(?P<tid>\d+)$', 'new_topic_thanks', name='forums-new_topic_thanks'), |
9 url(r'^topic/(?P<id>\d+)/$', 'topic_index', name='forums-topic_index'), | 9 url(r'^topic/(?P<id>\d+)/$', 'topic_index', name='forums-topic_index'), |
10 url(r'^delete-post/$', 'delete_post', name='forums-delete_post'), | 10 url(r'^delete-post/$', 'delete_post', name='forums-delete_post'), |
11 url(r'^edit/(?P<id>\d+)/$', 'edit_post', name='forums-edit_post'), | 11 url(r'^edit/(?P<id>\d+)/$', 'edit_post', name='forums-edit_post'), |
27 url(r'^quick-reply/$', 'quick_reply_ajax', name='forums-quick_reply'), | 27 url(r'^quick-reply/$', 'quick_reply_ajax', name='forums-quick_reply'), |
28 url(r'^unanswered/$', 'unanswered_topics', name='forums-unanswered_topics'), | 28 url(r'^unanswered/$', 'unanswered_topics', name='forums-unanswered_topics'), |
29 url(r'^unread/$', 'unread_topics', name='forums-unread_topics'), | 29 url(r'^unread/$', 'unread_topics', name='forums-unread_topics'), |
30 ) | 30 ) |
31 | 31 |
32 urlpatterns += patterns('forums.subscriptions', | 32 urlpatterns += patterns('forums.views.favorites', |
33 url(r'^favorite/(\d+)/$', 'favorite_topic', name='forums-favorite_topic'), | |
34 url(r'^favorites/$', 'manage_favorites', name='forums-manage_favorites'), | |
35 url(r'^favorites/(\d+)/$', 'favorites_status', name='forums-favorites_status'), | |
36 url(r'^unfavorite/(\d+)/$', 'unfavorite_topic', name='forums-unfavorite_topic'), | |
37 ) | |
38 | |
39 urlpatterns += patterns('forums.views.subscriptions', | |
33 url(r'^subscribe/(\d+)/$', 'subscribe_topic', name='forums-subscribe_topic'), | 40 url(r'^subscribe/(\d+)/$', 'subscribe_topic', name='forums-subscribe_topic'), |
34 url(r'^subscriptions/$', 'manage_subscriptions', name='forums-manage_subscriptions'), | 41 url(r'^subscriptions/$', 'manage_subscriptions', name='forums-manage_subscriptions'), |
35 url(r'^subscriptions/(\d+)/$', 'subscription_status', name='forums-subscription_status'), | 42 url(r'^subscriptions/(\d+)/$', 'subscription_status', name='forums-subscription_status'), |
36 url(r'^unsubscribe/(\d+)/$', 'unsubscribe_topic', name='forums-unsubscribe_topic'), | 43 url(r'^unsubscribe/(\d+)/$', 'unsubscribe_topic', name='forums-unsubscribe_topic'), |
37 ) | 44 ) |
38 | 45 |
39 urlpatterns += patterns('forums.spam', | 46 urlpatterns += patterns('forums.views.spam', |
40 url(r'^spammer/(\d+)/$', 'spammer', name='forums-spammer'), | 47 url(r'^spammer/(\d+)/$', 'spammer', name='forums-spammer'), |
41 url(r'^spammer/nailed/(\d+)/$', 'spammer_nailed', name='forums-spammer_nailed'), | 48 url(r'^spammer/nailed/(\d+)/$', 'spammer_nailed', name='forums-spammer_nailed'), |
42 url(r'^stranger/(\d+)/$', 'stranger', name='forums-stranger'), | 49 url(r'^stranger/(\d+)/$', 'stranger', name='forums-stranger'), |
43 ) | 50 ) |