嗨,我正在尝试命名我的网址,但出现以下错误:
错误:
LogoutView() received an invalid keyword 'name'. as_view only accepts arguments that are already attributes of the class.
url:
url(r'^logout/$', auth_views.LogoutView.as_view(template_name='accounts/logout.html', name='logout')),
正在处理项目并卡住了atm。 TIA