bgneal@323: """ bgneal@323: urls.py - URLs for the ygroup application. bgneal@323: bgneal@323: """ bgneal@1028: from django.conf.urls import url bgneal@323: bgneal@1080: from ygroup.views import ThreadIndexView, ThreadView, PostView bgneal@323: bgneal@323: bgneal@1028: urlpatterns = [ bgneal@323: url(r'^threads/$', bgneal@323: ThreadIndexView.as_view(), bgneal@323: name='ygroup-thread_index'), bgneal@323: url(r'^thread/(\d+)/$', bgneal@323: ThreadView.as_view(), bgneal@323: name='ygroup-thread_view'), bgneal@323: url(r'^post/(?P\d+)/$', bgneal@1080: PostView.as_view(), bgneal@323: name='ygroup-post_view'), bgneal@1028: ]