annotate ygroup/urls.py @ 1157:e4f2d6a4b401
Rework S3 connection logic for latest versions of Python 2.7.
Had to make these changes for Ubuntu 16.04. Seems backward compatible
with production.
author |
Brian Neal <bgneal@gmail.com> |
date |
Thu, 19 Jan 2017 18:35:53 -0600 |
parents |
db8f5b3204b7 |
children |
|
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@323
|
6
|
bgneal@1080
|
7 from ygroup.views import ThreadIndexView, ThreadView, PostView
|
bgneal@323
|
8
|
bgneal@323
|
9
|
bgneal@1028
|
10 urlpatterns = [
|
bgneal@323
|
11 url(r'^threads/$',
|
bgneal@323
|
12 ThreadIndexView.as_view(),
|
bgneal@323
|
13 name='ygroup-thread_index'),
|
bgneal@323
|
14 url(r'^thread/(\d+)/$',
|
bgneal@323
|
15 ThreadView.as_view(),
|
bgneal@323
|
16 name='ygroup-thread_view'),
|
bgneal@323
|
17 url(r'^post/(?P<pk>\d+)/$',
|
bgneal@1080
|
18 PostView.as_view(),
|
bgneal@323
|
19 name='ygroup-post_view'),
|
bgneal@1028
|
20 ]
|