Skip to content
Snippets Groups Projects
urls_news.py 400 B
Newer Older
Olivier Le Brouster's avatar
Olivier Le Brouster committed
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.conf.urls import patterns, url
from newsbox.views import NewsboxDetailView

from .models import News

urlpatterns = patterns(
    '',
    url(
Dylann Cordel's avatar
Dylann Cordel committed
        r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[0-9a-zA-Z_-]+)/$',
Olivier Le Brouster's avatar
Olivier Le Brouster committed
        NewsboxDetailView.as_view(
            model=News,),
        name='news_detail'),
)