bornhack-website/news/urls.py
2017-01-20 16:18:10 +01:00

11 lines
330 B
Python

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'),
url(r'(?P<slug>[-_\w+]+)/$', views.NewsDetail.as_view(), name='detail'),
]