幫我解決這個問題url.pyurlpatterns = [ url(r'login/$',auth_views.LoginView.as_view(template_name="accounts/login.html"),name='login'), url(r'logout/$',auth_views.LogoutView.as_view(),name='logout'), url(r'signup/$',views.SignUp.as_view(),name='signup'),]views.pyclass SignUp(CreateView): form_class = forms.UserCreateForm success_url = reverse_lazy("login") template_name = 'accounts/signup.html'這是我得到的錯誤回溯Traceback: File "C:\Users\DELL\anaconda3\envs\MyDjangoEnv\lib\site-packages\django\core\handlers\exception.py",line 34, in inner response = get_response(request) File "C:\Users\DELL\anaconda3\envs\MyDjangoEnv\lib\site-packages\django\core\handlers\base.py",line 115, in _get_response response = self.process_exception_by_middleware(e, request)File "C:\Users\DELL\anaconda3\envs\MyDjangoEnv\lib\site-packages\django\core\handlers\base.py",line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) –請幫忙
as_view() 采用 1 個位置參數(shù),但給出了 2 個
寶慕林4294392
2023-06-13 10:53:07