Странное поведение Django
Когда бы я ни начинал проект в Django, независимо от названия приложения или проекта, и независимо от любых урлов или настроек, при запуске python manage.py runserver
и переходе на 127.0.0.1 я получаю следующую ошибку: Not Found: /ball/ [10/Jan/2022 11:32:32] "GET /ball/ HTTP/1.1" 404 2337
и это отображается в браузере:
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/ball/
Using the URLconf defined in ornaments.urls, Django tried these URL patterns, in this order:
admin/
^static/(?P<path>.*)$
^media/(?P<path>.*)$
^static/(?P<path>.*)$
The current path, ball/, 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.
Почему Django ищет маршрут с именем ball
?