
Django useful URL Patterns
In this tutorial we discuss some important url which make easy to maintain url in django. Using path function: In Django, the path () function is used to configure URLs. In its basic form, the path() function has a very simple syntax. An example of the basic path() function would be: path(‘mypage/’, views.myview) Another way to define it: from django.urls import path
from .import views
urlpatterns = [
path(‘’, views.index, name=’index’)
] Define using regex: 1- By usin