annotate 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
rev   line source
bgneal@81 1 """
bgneal@81 2 URLs for the forums application.
bgneal@81 3 """
bgneal@81 4 from django.conf.urls.defaults import *
bgneal@81 5
bgneal@81 6 urlpatterns = patterns('forums.views',
bgneal@81 7 url(r'^$', 'index', name='forums-index'),
bgneal@83 8 url(r'^new-topic-success/(?P<tid>\d+)$', 'new_topic_thanks', name='forums-new_topic_thanks'),
bgneal@82 9 url(r'^topic/(?P<id>\d+)/$', 'topic_index', name='forums-topic_index'),
bgneal@81 10 url(r'^(?P<slug>[\w\d-]+)/$', 'forum_index', name='forums-forum_index'),
bgneal@83 11 url(r'^(?P<slug>[\w\d-]+)/topic/$', 'new_topic', name='forums-new_topic'),
bgneal@81 12 )
bgneal@83 13