bornhack-website/news/urls.py

11 lines
330 B
Python
Raw Normal View History

2016-05-30 19:36:14 +00:00
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.NewsIndex.as_view(), kwargs={'archived': False}, name='index'),
url(r'^archive/$', views.NewsIndex.as_view(), kwargs={'archived': True}, name='archive'),
2016-06-05 21:26:54 +00:00
url(r'(?P<slug>[-_\w+]+)/$', views.NewsDetail.as_view(), name='detail'),
2016-05-30 19:36:14 +00:00
]