from django.conf.urls import url
from .views import PostList, post_detail


urlpatterns = [
    url(r'^$', PostList.as_view(), name='blog_post_list'),
    # example, 2018/1/django-training
    url(r'^(?P<year>\d{4})/' r'(?P<month>\d{1,2})/' r'(?P<slug>[\w\-]+)/$',
        post_detail, name='blog_post_detail'),
]
