from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.post_list, name='post_list'), url(r'^(?P[0-9]+)/$', views.post_list, name='post_list'), url(r'^post/(?P[0-9]+)/$', views.post_detail, name='post_detail'), url(r'^new/$', views.post_new, name='post_new'), url(r'^post/(?P[0-9]+)/edit/$', views.post_edit, name='post_edit'), url(r'^tag/(?P[a-zA-Z]+)/$', views.search_by_tag, name='search_by_tag'), ]