Urlpatterns with function-based view

Report a typo

Assume that you have two implemented Function-based views: cat_view and dog_view.

Populate the urlpatterns with paths so that requests with the link cat/ are processed by the cat_view, and those with the link dog/ are processed by the dog_view.

Do not define the cat_view and dog_view functions!

Write a program in Python 3
urlpatterns = [

]
___

Create a free account to access the full topic