InterviewSolution
Saved Bookmarks
| 1. |
What are Django URLs? |
|
Answer» URLs are one of the most important parts of a web application and Django provides you with an elegant way to design your own custom URLs with help of its module known as URLconf (URL Configuration). The basic functionality of this python module is to Basic SYNTAX: from django.urls import pathfrom . import viewsurlpatterns = [ path('data/2020/', views.data_2020), path('data/<int:year>/', views.data_year)] |
|