Complete the code to import the path function from Django.
from django.urls import [1]
The path function is imported from django.urls to define URL routes.
Complete the code to define a URL pattern for the home page using the path function.
urlpatterns = [
[1]('', views.home, name='home'),
]The path function is used to define URL patterns in Django.
Fix the error in the URL pattern by completing the path function call correctly.
urlpatterns = [
path('blog/[1]', views.blog_post, name='blog_post'),
]The URL pattern uses a path converter to capture an integer parameter named post_id.
Fill both blanks to create a URL pattern that includes another URL configuration.
urlpatterns = [
[1]('blog/', [2]('blog.urls')),
]Use path to define the route and include to include another URL config.
Fill all three blanks to create a URL pattern with a slug parameter and a name.
urlpatterns = [
[1]('article/[2]', views.article_detail, name=[3]),
]The path function defines the route, <slug:slug> captures the slug parameter, and the name is a string identifying the route.