2017-10-29 13:40:42 +03:00
|
|
|
from django.conf.urls import url
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
urlpatterns = [
|
2017-11-05 00:34:26 +03:00
|
|
|
url(r'^$', views.post_list, name='post_list'),
|
2017-11-09 17:34:42 +03:00
|
|
|
#url(r'^(?P<page>[0-9]+)/$', views.post_list, name='post_list'),
|
|
|
|
url(r'^tag/(?P<tag>[a-zA-Z]+)/$', views.post_list, name='post_list'),
|
|
|
|
#url(r'^(?P<tag>[a-zA-Z]+)/(?P<page>[0-9]+)/$', views.post_list, name='post_list'),
|
2017-10-29 13:40:42 +03:00
|
|
|
url(r'^post/(?P<pk>[0-9]+)/$', views.post_detail, name='post_detail'),
|
|
|
|
url(r'^new/$', views.post_new, name='post_new'),
|
|
|
|
url(r'^post/(?P<pk>[0-9]+)/edit/$', views.post_edit, name='post_edit'),
|
2017-11-09 17:34:42 +03:00
|
|
|
#url(r'^tag/(?P<tag>[a-zA-Z]+)/$', views.search_by_tag, name='search_by_tag'),
|
2017-10-29 13:40:42 +03:00
|
|
|
]
|
|
|
|
|