"""URLs for the blog app."""

from django.conf.urls import url
from blog.views import (
    ListPosts,
    ListTaggedPosts,
    post_detail,
    CreatePost,
    EditPost,
    DeletePost
)

urlpatterns = [
    url(r'^$', ListPosts.as_view(), name="list_posts"),
    url(r'^new$', CreatePost.as_view(), name="create_posts"),
    url(r'^(?P<pk>[0-9]+)$', post_detail, name="post_detail_pk"),
    url(
        r'^(?P<slug>[a-z0-9\-_]+)$',
        post_detail,
        name="post_detail_slug"
    ),
    url(r'^(?P<pk>[0-9]+)/edit$', EditPost.as_view(), name="edit_post"),
    url(r'^(?P<pk>[0-9]+)/delete$', DeletePost.as_view(), name="delete_post"),
    url(
        r'^tagged/(?P<tag>[a-z0-9\-_(\%20)\s]+)',
        ListTaggedPosts.as_view(),
        name="tagged_as"
    )
]

ce305db979ee1321f28a7c3b1e17668262d1bdaf
<mask token>

<mask token>
urlpatterns = [url('^$', ListPosts.as_view(), name='list_posts'), url(
    '^new$', CreatePost.as_view(), name='create_posts'), url(
    '^(?P<pk>[0-9]+)$', post_detail, name='post_detail_pk'), url(
    '^(?P<slug>[a-z0-9\\-_]+)$', post_detail, name='post_detail_slug'), url
    ('^(?P<pk>[0-9]+)/edit$', EditPost.as_view(), name='edit_post'), url(
    '^(?P<pk>[0-9]+)/delete$', DeletePost.as_view(), name='delete_post'),
    url('^tagged/(?P<tag>[a-z0-9\\-_(\\%20)\\s]+)', ListTaggedPosts.as_view
    (), name='tagged_as')]

<mask token>
from django.conf.urls import url
from blog.views import ListPosts, ListTaggedPosts, post_detail, CreatePost, EditPost, DeletePost
urlpatterns = [url('^$', ListPosts.as_view(), name='list_posts'), url(
    '^new$', CreatePost.as_view(), name='create_posts'), url(
    '^(?P<pk>[0-9]+)$', post_detail, name='post_detail_pk'), url(
    '^(?P<slug>[a-z0-9\\-_]+)$', post_detail, name='post_detail_slug'), url
    ('^(?P<pk>[0-9]+)/edit$', EditPost.as_view(), name='edit_post'), url(
    '^(?P<pk>[0-9]+)/delete$', DeletePost.as_view(), name='delete_post'),
    url('^tagged/(?P<tag>[a-z0-9\\-_(\\%20)\\s]+)', ListTaggedPosts.as_view
    (), name='tagged_as')]

"""URLs for the blog app."""

from django.conf.urls import url
from blog.views import (
    ListPosts,
    ListTaggedPosts,
    post_detail,
    CreatePost,
    EditPost,
    DeletePost
)

urlpatterns = [
    url(r'^$', ListPosts.as_view(), name="list_posts"),
    url(r'^new$', CreatePost.as_view(), name="create_posts"),
    url(r'^(?P<pk>[0-9]+)$', post_detail, name="post_detail_pk"),
    url(
        r'^(?P<slug>[a-z0-9\-_]+)$',
        post_detail,
        name="post_detail_slug"
    ),
    url(r'^(?P<pk>[0-9]+)/edit$', EditPost.as_view(), name="edit_post"),
    url(r'^(?P<pk>[0-9]+)/delete$', DeletePost.as_view(), name="delete_post"),
    url(
        r'^tagged/(?P<tag>[a-z0-9\-_(\%20)\s]+)',
        ListTaggedPosts.as_view(),
        name="tagged_as"
    )
]
