Mercurial > public > sg101
view gpp/forums/urls.py @ 101:4bbb6a9aa317
Forums: use select_related() with get_object_or_404() to reduce queries.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 16 Sep 2009 00:39:27 +0000 |
parents | d0d779dd0832 |
children | cb72577785df |
line wrap: on
line source
""" URLs for the forums application. """ from django.conf.urls.defaults import * urlpatterns = patterns('forums.views', url(r'^$', 'index', name='forums-index'), url(r'^new-topic-success/(?P<tid>\d+)$', 'new_topic_thanks', name='forums-new_topic_thanks'), url(r'^topic/(?P<id>\d+)/$', 'topic_index', name='forums-topic_index'), url(r'^flag-post/$', 'flag_post', name='forums-flag_post'), url(r'^forum/(?P<slug>[\w\d-]+)/$', 'forum_index', name='forums-forum_index'), url(r'^forum/(?P<slug>[\w\d-]+)/new-topic/$', 'new_topic', name='forums-new_topic'), url(r'^post/(\d+)/$', 'goto_post', name='forums-goto_post'), url(r'^quick-reply/$', 'quick_reply_ajax', name='forums-quick_reply'), )