Почему путь моего URL в Django работает, когда я удаляю имя? [закрыто]
Привет, ребята, мой путь работает, когда я удаляю 'notes' в URLs.py, почему?
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('home.urls')),
path('notes/', include('notes.urls'))
]
app urls.py
urlpatterns= [
path('',views.list, name="notes"),
]
my views.py
def list(request):
all_notes = Note.objects.all()
return render(request, "notes/notes.html" , {'notes' : all_notes} )