python问题。。。django

使用python3 ,django 2.0

settings:图片说明

urls:图片说明

account/urls:图片说明

views:图片说明

我的设置是这样的,请问各位,为什么我访问时出现

Not Found
The requested URL /login/ was not found on this server.

配置文件urls.py 里写了account.urls包含在account路由下,所以你应该访问localhost:8000/account/login/来访问登录页面(假设你用的默认端口8000)

你就没写这个login的接口啊

你的account/urls.py中你配置了查找login的时候渲染登录界面,你的入口url文件中包含了这个配置文件,而你前面写了r'^account',你只能通过访问
/account/login登录。