annotate ygroup/urls.py @ 1074:650ab160cbb9
Convert Member List to V3 design.
author |
Brian Neal <bgneal@gmail.com> |
date |
Wed, 13 Apr 2016 21:02:09 -0500 |
parents |
5d208c3321ce |
children |
db8f5b3204b7 |
rev |
line source |
bgneal@323
|
1 """
|
bgneal@323
|
2 urls.py - URLs for the ygroup application.
|
bgneal@323
|
3
|
bgneal@323
|
4 """
|
bgneal@1028
|
5 from django.conf.urls import url
|
bgneal@574
|
6 from django.views.generic import DetailView
|
bgneal@323
|
7
|
bgneal@574
|
8 from ygroup.models import Post
|
bgneal@323
|
9 from ygroup.views import ThreadIndexView, ThreadView
|
bgneal@323
|
10
|
bgneal@323
|
11
|
bgneal@1028
|
12 urlpatterns = [
|
bgneal@323
|
13 url(r'^threads/$',
|
bgneal@323
|
14 ThreadIndexView.as_view(),
|
bgneal@323
|
15 name='ygroup-thread_index'),
|
bgneal@323
|
16 url(r'^thread/(\d+)/$',
|
bgneal@323
|
17 ThreadView.as_view(),
|
bgneal@323
|
18 name='ygroup-thread_view'),
|
bgneal@323
|
19 url(r'^post/(?P<pk>\d+)/$',
|
bgneal@1045
|
20 DetailView.as_view(model=Post, context_object_name='post',
|
bgneal@1045
|
21 template_name='ygroup/v3/post.html'),
|
bgneal@323
|
22 name='ygroup-post_view'),
|
bgneal@1028
|
23 ]
|