comparison gpp/forums/urls.py @ 83:5b4c812b448e

Forums: Added the ability to add a new topic. This is very much a work in progress.
author Brian Neal <bgneal@gmail.com>
date Sat, 29 Aug 2009 20:54:16 +0000
parents bc3978f023c2
children 531fcc342a03
comparison
equal deleted inserted replaced
82:bc3978f023c2 83:5b4c812b448e
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',
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'^topic/(?P<id>\d+)/$', 'topic_index', name='forums-topic_index'), 9 url(r'^topic/(?P<id>\d+)/$', 'topic_index', name='forums-topic_index'),
9 url(r'^(?P<slug>[\w\d-]+)/$', 'forum_index', name='forums-forum_index'), 10 url(r'^(?P<slug>[\w\d-]+)/$', 'forum_index', name='forums-forum_index'),
11 url(r'^(?P<slug>[\w\d-]+)/topic/$', 'new_topic', name='forums-new_topic'),
10 ) 12 )
13