Skip to content
Justice Tech School

URL Configuration

path maps a URL to a view.

Example
from django.urls import path
from . import views

urlpatterns = [
    path("", views.home, name="home"),
    path("about/", views.about, name="about"),
]

Exercise

Map a path.

("about/", views.about)

Quiz Test

Which list holds routes?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.