7.11.1 Beware of Greedy Regular Expressions!

chap7-new
Jason Zhu 2020-11-11 15:19:01 +11:00
parent 3b999bda98
commit 62beff176e
1 changed files with 2 additions and 2 deletions

View File

@ -19,5 +19,5 @@ from lists import views
urlpatterns = [ urlpatterns = [
url(r'^$', views.home_page, name='home'), url(r'^$', views.home_page, name='home'),
url(r'^lists/new$', views.new_list, name='new_list'), url(r'^lists/new$', views.new_list, name='new_list'),
url(r'^lists/(.+)/$', views.view_list, name='view_list'), url(r'^lists/(\d+)/$', views.view_list, name='view_list'),
] ]