bornhack-website/news/urls.py

9 lines
201 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(), name='index'),
2016-06-05 21:20:06 +00:00
url(r'(?P<slug>[-_\w+]+)/$', NewsDetail.as_view(), name='detail'),
2016-05-30 19:36:14 +00:00
]