bornhack-website/news/urls.py
Thomas Steen Rasmussen 4932bb1001 missing module prefix
2016-06-05 23:26:54 +02:00

9 lines
207 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+]+)/$', views.NewsDetail.as_view(), name='detail'),
]