comparison gpp/ygroup/urls.py @ 323:0c18dfb1da1c

Fixing #149; adding the ygroup application: an archive of the old Yahoo Group messages.
author Brian Neal <bgneal@gmail.com>
date Sun, 20 Feb 2011 00:31:54 +0000
parents
children ddd69a8e07c7
comparison
equal deleted inserted replaced
322:c3d3d7114749 323:0c18dfb1da1c
1 """
2 urls.py - URLs for the ygroup application.
3
4 """
5 from django.conf.urls.defaults import *
6 from django.views.generic import ListView, DetailView
7
8 from ygroup.models import Thread, Post
9 from ygroup.views import ThreadIndexView, ThreadView
10
11
12 urlpatterns = patterns('',
13 url(r'^threads/$',
14 ThreadIndexView.as_view(),
15 name='ygroup-thread_index'),
16 url(r'^thread/(\d+)/$',
17 ThreadView.as_view(),
18 name='ygroup-thread_view'),
19 url(r'^post/(?P<pk>\d+)/$',
20 DetailView.as_view(model=Post, context_object_name='post'),
21 name='ygroup-post_view'),
22 )
23