Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在/password\u reset/django处输入错误_Django_Python 3.x - Fatal编程技术网

在/password\u reset/django处输入错误

在/password\u reset/django处输入错误,django,python-3.x,Django,Python 3.x,我试图覆盖默认密码重置模板,但出现以下错误: TypeError at /password_reset/ __init__() takes 1 positional argument but 2 were given 这是我的网址 url(r'^password_reset/$', auth_views.PasswordResetView, {'template_name': 'accounts/password_reset_done.html'}, name='password_res

我试图覆盖默认密码重置模板,但出现以下错误:

TypeError at /password_reset/
__init__() takes 1 positional argument but 2 were given
这是我的网址

   url(r'^password_reset/$', auth_views.PasswordResetView, {'template_name': 'accounts/password_reset_done.html'}, name='password_reset'),

将视图传递到URL配置的方式是错误的

更改:

url(r'^password_reset/$', auth_views.PasswordResetView, ...)
致:


()

将视图传递到URL配置的方式是错误的

更改:

url(r'^password_reset/$', auth_views.PasswordResetView, ...)
致:

()

url(r'^password'u reset/$,auth'^password'u reset/$,auth'^password'u reset/$,as''u view(template'name='accounts/password'u reset.html'),{'template'name':'accounts/password'u reset.html'},name='password reset'),url(r'^password'u reset/$,auth''u views.PasswordResetView.as'.as.'u视图(template'name='accounts/password'reset.html'),{'template_name':'accounts/password_reset.html'},name='password_reset'),