You’re seeing this error because you have DEBUG = True in your Django settings file.

Using the URLconf defined in AreaManage.urls, Django tried these URL patterns, in this order:

admin/
^areas/
The empty path 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.

出现以上错误了

urlpatterns = [
url('admin/', admin.site.urls),
url('^areas/', include('Areas.urls', namespace='areas')), ????? 这个错了吗 怎么调 都不行
]

img

意思应该是你应该要保留一个空路径,就是浏览器直接输入你的服务器及端口后的返回页面
类似这样

urlpatterns = [
url('', views.home),   # 这个views.home 你自己修改, 可以去views.py 里添加
url('admin/', admin.site.urls),
url('^areas/', include('Areas.urls', namespace='areas'))
]