Mercurial > public > sg101
annotate contests/urls.py @ 1149:23dd077358ec
Forgot to add new template for weblinks V3 design.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 01 Dec 2016 21:05:12 -0600 |
parents | 16e190fa6ef8 |
children |
rev | line source |
---|---|
bgneal@540 | 1 """ |
bgneal@540 | 2 Url patterns for the contests application. |
bgneal@540 | 3 |
bgneal@540 | 4 """ |
bgneal@1028 | 5 from django.conf.urls import url |
bgneal@540 | 6 |
bgneal@1028 | 7 import contests.views |
bgneal@540 | 8 |
bgneal@540 | 9 |
bgneal@1028 | 10 urlpatterns = [ |
bgneal@540 | 11 url(r'^$', |
bgneal@1085 | 12 contests.views.ContestListView.as_view(), |
bgneal@540 | 13 name='contests-index'), |
bgneal@540 | 14 |
bgneal@540 | 15 url(r'^enter/$', |
bgneal@1028 | 16 contests.views.enter, |
bgneal@540 | 17 name='contests-enter'), |
bgneal@540 | 18 |
bgneal@540 | 19 url(r'^c/(?P<slug>[\w-]+)/$', |
bgneal@1085 | 20 contests.views.ContestDetailView.as_view(), |
bgneal@540 | 21 name='contests-contest'), |
bgneal@1028 | 22 ] |