view gpp/shoutbox/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 777451a98f9d
children 7ddd60164245
line wrap: on
line source
"""
Urls for the Shoutbox application.
"""

from django.conf.urls.defaults import *

urlpatterns = patterns('shoutbox.views',
    url(r'^delete/$', 'delete', name='shoutbox-delete'),
    url(r'^edit/$', 'edit', name='shoutbox-edit'),
    url(r'^flag/$', 'flag', name='shoutbox-flag'),
    url(r'^shout/$', 'shout', name='shoutbox-shout'),
    url(r'^text/$', 'text', name='shoutbox-text'),
    url(r'^view/(\d+)/$', 'view_shout', name='shoutbox-view'),
    url(r'^view/history/(?P<page>\d+)/$', 'view_history', name='shoutbox-history'),
)

# vim: ts=4 sw=4