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
- Writing a Function-Based View
- URL Patterns with path()
- Capturing URL Parameters
- Including App URLs and Naming Routes