What do I need to do to fix a 404 error in django

56 Views Asked by At

I'm new to studying Django and I'm doing a task and I have to display a message with the url "http://127.0.0.1:8000/blog/". But when I search with this url, the error

Page not found (404) is displayed
Request Method: GET
Request URL: http://127.0.0.1:8000/blog/
Using the URLconf defined in project1.urls, Django tried these URL patterns, in this order:

admin/
The current path, blog/, didn’t match any of these.

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

Could anyone offer me help?

A message chosen by the teacher would have to appear, but I only have the error as a response.

0

There are 0 best solutions below