Answer the question
In order to leave comments, you need to log in
What's wrong with line 8?
Code from "django 2 by examples" book, invalid syntax(, line 8):
from django.urls import path
from . import views
app_name='blog'
urlpatterns=[
path('', views.post_list, name='post_list')
path('<int:year>/<int:month>/<int:day>/<slug:post>/', views.post_detail, name='post_detail')
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question