from django.conf.urls import url

from ..views import project_list, project_detail, ProjectCreate, ProjectUpdate, ProjectDelete

urlpatterns = [
    url(r'^$', project_list, name='blog_project_list'),
    url(r'^create/$', ProjectCreate.as_view(), name='blog_project_create'),
    url(r'^(?P<year>\d{4})/'r'(?P<month>\d{1,2})/'r'(?P<slug>[\w\-]+)/$', project_detail, name='blog_project_detail'),
    url(r'^(?P<year>\d{4})/'r'(?P<month>\d{1,2})/'r'(?P<slug>[\w\-]+)/'r'delete/$', ProjectDelete.as_view(), name='blog_project_delete'),
    url(r'^(?P<year>\d{4})/'r'(?P<month>\d{1,2})/'r'(?P<slug>[\w\-]+)/'r'update/$', ProjectUpdate.as_view(), name='blog_project_update'),
]
