Django 2.0 path error ?: (2_0.W001) has a route that contains '(?P<', begins with a '^', or ends with a '$'

后端 未结 7 605
执念已碎
执念已碎 2020-12-08 08:59

I\'m new to Django and am trying to create the back end code for a music application on my website.

I have created the correct view in my views.py file (in the corre

相关标签:
7条回答
  • 2020-12-08 09:50

    If it doesn't work add this code to yoursite\urls.py inside urlpatterns:

    path('music/<int:album_id>/', views.detail, name="detail"),
    
    0 讨论(0)
提交回复
热议问题