comparison gpp/forums/urls.py @ 85:531fcc342a03

Forums: put the forum indices under the url forums/forum to avoid clashing with other functions. Modified the forum index template to have a link to the topic creator's profile.
author Brian Neal <bgneal@gmail.com>
date Sun, 30 Aug 2009 19:58:42 +0000
parents 5b4c812b448e
children 021492db4aad
comparison
equal deleted inserted replaced
84:9e5e52556d5b 85:531fcc342a03
5 5
6 urlpatterns = patterns('forums.views', 6 urlpatterns = patterns('forums.views',
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'^(?P<slug>[\w\d-]+)/$', 'forum_index', name='forums-forum_index'), 10 url(r'^forum/(?P<slug>[\w\d-]+)/$', 'forum_index', name='forums-forum_index'),
11 url(r'^(?P<slug>[\w\d-]+)/topic/$', 'new_topic', name='forums-new_topic'), 11 url(r'^forum/(?P<slug>[\w\d-]+)/new-topic/$', 'new_topic', name='forums-new_topic'),
12 ) 12 )
13 13