2016-05-30 19:36:14 +00:00
|
|
|
from django.conf.urls import url
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
|
|
|
|
urlpatterns = [
|
2017-01-20 15:18:10 +00:00
|
|
|
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
|
|
|
]
|
2017-01-20 15:18:10 +00:00
|
|
|
|