urls.py 327 B

12345678910
  1. from django.conf.urls import url
  2. from . import views
  3. urlpatterns = [
  4. url(r'^$', views.post_list, name='post_list'),
  5. url(r'^post/(?P<pk>\d+)/$', views.post_detail, name='post_detail'),
  6. url(r'^post/(?P<pk>\d+)/edit/$', views.post_edit, name='post_edit'),
  7. url(r'^post/new/$', views.post_new, name='post_new'),
  8. ]