[Fixed]-URL Error in Django,Page not found 404

1👍

As stacktrace said you are trying to open http://127.0.0.1/music/id/1 page not http://127.0.0.1/music/1 but there is no such urp pattern in your urls.py. You need try to open http://127.0.0.1/music/1 or add new pattern:

url(r'^id/(?P<album_id>[0-9]+)/$', views.detail, name='detail')

to see http://127.0.0.1/music/id/1 page.

Leave a comment