bornhack-website/news/urls.py
2016-06-05 23:20:06 +02:00

9 lines
201 B
Python

from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.NewsIndex.as_view(), name='index'),
url(r'(?P<slug>[-_\w+]+)/$', NewsDetail.as_view(), name='detail'),
]