7.12 A Final Refactor Using URL includes (w/ bug fix)

chap7-new
Jason Zhu 2020-11-11 16:02:34 +11:00
parent 59f8866642
commit c1e75783d6
1 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ from django.conf.urls import url
from lists import views
urlpatterns = [
url(r'^lists/new$', views.new_list, name='new_list'),
url(r'^lists/(\d+)/$', views.view_list, name='view_list'),
url(r'^lists/(\d+)/add_item$', views.add_item, name='add_item'),
url(r'^new$', views.new_list, name='new_list'),
url(r'^(\d+)/$', views.view_list, name='view_list'),
url(r'^(\d+)/add_item$', views.add_item, name='add_item'),
]