The current path, accounts/profile/, didn’t match any of these.
使用django 内置登录系统时进行注册会默认跳转到/accounts/profile
原因是是你已经在登陆状态所以才报错了,换成这样/accounts/logout/在浏览器输入后,再次进入就好了。
解决办法:
先使用**/accounts/logout/**进行注销,然后再进行注册
http://127.0.0.1:8000/accounts/logout/
http://127.0.0.1:8000/accounts/register/ 再进行注册就OK了