Previously, we configured the app urls to view. But, it won't work until we configure it with project urls.
Project urls are the root urls where the django request recieved based on the url path and dispatched to respective django view.
To configure the app urls to the project, open file my_project/urls.py and update it accordingly.
fromdjango.contribimportadminfromdjango.urlsimportpath,includeurlpatterns=[# include app urlspath('my_app/',include('my_app.urls')),path('admin/',admin.site.urls),]