in apps.dashboard.tests & .urls, adding a new to-do item to the input field in either home.html or a blank-tabled list.html points to /apps/dashboard/newlist; in .views, home_page() FBV simplified to a mere html page render & new_list() FBV added that currently points to the global list
This commit is contained in:
@@ -5,5 +5,6 @@ from apps.dashboard import views
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('', views.home_page, name='home'),
|
||||
path('apps/dashboard/newlist', views.new_list, name='new_list'),
|
||||
path('apps/dashboard/the-only-list-in-the-world/', views.view_list, name='view_list'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user