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

urlpatterns = [
    url(r'^$', views.post_list, name ="post_list"),
    url(r'^post/(?P<pk>\d+)/$', views.post_detail, name="post_detail"),
    url(r'^post/new/$', views.post_new, name = "post_new"),
    url(r'^post/(?P<pk>\d+)/edit/$', views.post_edit, name='post_edit'),
    url(r'^post/(?P<pk>\d+)/history/$', views.edited_history, name='edited_history'),
    url(r'^post/my_blogs/$', views.blog_profile, name='my_blog_profile'),
    
]

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

urlpatterns = [
    url(r'^$', views.post_list, name ="post_list"),
    url(r'^post/(?P<pk>\d+)/$', views.post_detail, name="post_detail"),
    url(r'^post/new/$', views.post_new, name = "post_new"),
    url(r'^post/(?P<pk>\d+)/edit/$', views.post_edit, name='post_edit'),
    url(r'^post/(?P<pk>\d+)/history/$', views.edited_history, name='edited_history'),
    url(r'^post/my_blogs/$', views.blog_profile, name='my_blog_profile'),
    
]
