Django问题报错:TypeError: as_view() takes 1 positional argument but 2 were given
一、错误位置fromdjango.urlsimportpathfromusers_app.viewsimportRegisterView,LoginView,LogoutViewapp_name='users'urlpatterns=[path("register/",RegisterView.as_view,name="register"),path("login/",LoginView.as_