[Answer]-Django: Page not found (404) and not getting data from models in templates

1👍

You’re going to the URL "/band/" in your browser, but you haven’t defined a urlpattern for that URL: you’ve defined "/" and "/band/<id>/". Either go to the root page, or find the ID of an existing band object and go to that page.

You would almost certainly be better off doing the official Django tutorial, rather than following a random YouTube video.

Leave a comment