0PricingLogin
Django Academy · Lesson

URL Patterns with path()

Connect a URL to a view in urls.py.

Why URLs Need Mapping

Django needs to know which view handles which address. The URLconf is the map that connects a URL to a view.

The urls.py File

Your URL map lives in urls.py. It holds a list called urlpatterns that Django checks top to bottom for a match.

All lessons in this course

  1. Writing a Function-Based View
  2. URL Patterns with path()
  3. Capturing URL Parameters
  4. Including App URLs and Naming Routes
← Back to Django Academy