from django.conf.urls import url
from post.views import *

app_name ='post'

urlpatterns = [
    url(r'index/$',post_index,name='index'),
    # url(r'^(?P<id>\d+)$',post_detail),
    url(r'create/$',post_create,name='create'),
    url(r'^(?P<slug>[\w-]+)/$', post_detail,name='detail'),
    url(r'^(?P<slug>[\w-]+)/update/$',post_update,name='update'),
    url(r'^(?P<slug>[\w-]+)/delete/$',post_delete,name='delete'),
]
