Could anyone tell me how to define multiple URL patterns in Django?
On YouTube, I watched a few videos, but they didn’t help me and I found a lot fo mistakes in it.
Thank you for helping to define multiple URL patterns in Django.
>Solution :
It is very sample first import this library.
from django.urls import path
from . import views
And add this code.
urlpatterns = [
path('', views.home, name='home'),
path('about/', views.about, name='about'),
path('contact/', views.contact, name='contact'),
]