请教大家:URL配置问题
在myblog\urls.py中这样写: urlpatterns = [ path('admin', admin.site.urls), path('index', include('blog.urls')), ] 在blog\urls.py中这样写: app_name = 'blog' urlpatterns = [ path('', views.index, name='index'), ] 这样报错: Using the URLconf defined in myblog.urls, Django tried these URL patterns, in this order: admin index The current path, blog/, didn't match any of these. 请问是为什么呢?