from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView

from blogs.views import PostCreationView, PostDetailView, PostUpdateView, PostListView

urlpatterns = patterns('',
    url(r'^new/?$', PostCreationView.as_view(), name='posts-create'),
    url(r'^posts/?$', PostListView.as_view(), name='posts-list'),
    url(r'^posts/(?P<slug>.*?)/?$', PostDetailView.as_view(), name='posts-detail'),
    url(r'^update/(?P<slug>.*?)/?$', PostUpdateView.as_view(), name='posts-update'),
)
from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView

from blogs.views import PostCreationView, PostDetailView, PostUpdateView, PostListView

urlpatterns = patterns('',
    url(r'^new/?$', PostCreationView.as_view(), name='posts-create'),
    url(r'^/?$', PostListView.as_view(), name='posts-list'),
    url(r'^post/(?P<slug>.*?)/?$', PostDetailView.as_view(), name='posts-detail'),
    url(r'^update/(?P<slug>.*?)/?$', PostUpdateView.as_view(), name='posts-update'),
)
Set root url to post list
Set root url to post list
