Django Code Completion Easy +10 XP
URL Pattern
Complete the URL pattern function.
DjangoFill in the blank
urlpatterns = [
___("posts/", views.post_list, name="post-list"),
]Type the missing code
Show answer and explanation
Answer: path
path() is Django's URL routing function. It maps a URL pattern to a view function.
Hint: Which function defines URL routes in Django?
What this challenge tests
Code Completion in Django: urls, routing.