在settings.py文件中配置了EMAIL服务器信息后,在xadmin的登录页面点击“忘记了您的密码或用户名”超链接能够正常的收到密码重置的邮件通知,邮件内容为“因为你要求重置 127.0.0.1:8000 上的账户密码, 所以收到了这封邮件.
请访问该页面并选择一个新密码:
http://127.0.0.1:8000/xadmin/xadmin/password_reset/Ng-583-e9d8febec5c1401096e0/”
点击这个链接后,系统页面会报错,提示“TypeError at /xadmin/xadmin/password_reset/Ng-583-e9d8febec5c1401096e0/
init() takes 1 positional argument but 4 were given
Request Method: GET
Request URL: http://127.0.0.1:8000/xadmin/xadmin/password_reset/Ng-583-e9d8febec5c1401096e0/
Django Version: 2.1.7
Exception Type: TypeError
Exception Value:
init() takes 1 positional argument but 4 were given
Exception Location: C:\Users\Administrator\PycharmProjects\expertmanage\extra_apps\xadmin\xadmin\plugins\passwords.py in do_view, line 90
Python Executable: C:\Users\Administrator\Envs\mxonline\Scripts\python.exe”
感觉像是xadmin的源码兼容性有问题,请问老师这个问题该如何处理?