updateform, A user with that username already exists. ์๋ฌ
์ฅ๊ณ ๊ธฐ๋ฅ์ด ๋ฐ๋ ๊ฑด์ง ์ ๋ ๊ฐ์ ์๋ฌ ๋จ๋๋ฐ ๊ทธ๋ฅ ๋น๋ฐ๋ฒํธ ๋ณ๊ฒฝํ๋ PasswordChangeView import ํด์ ์ฌ์ฉํด๋ ๋ ๊ฒ ๊ฐ์์accountapp/views.pyfrom django.contrib.auth.views import PasswordChangeView class AccountUpdateView(PasswordChangeView): model = User template_name = "accountapp/update.html" success_url = reverse_lazy("accountapp:hello_world") #-- ์ฑ๊ณตํ ๊ฒฝ์ฐ ๋๋์๊ฐ ํ์ด์ง ์ง์ ํจ์ํ view -> reverseaccountapp/urls.pyfrom django.urls import path, reverse_lazy from .views import hello_world from .views import AccountCreateView, AccountDetailView, AccountUpdateView from django.contrib.auth.views import LoginView, LogoutView app_name = "accountapp" urlpatterns = [ path('hello_world/', hello_world, name = "hello_world"), path('login/', LoginView.as_view(template_name = "accountapp/login.html"), name = "login"), path('logout/', LogoutView.as_view(), name = "logout"), path('detail/', AccountDetailView.as_view(), name = "detail"), path('update/', AccountUpdateView.as_view(),name = "update"), #-- ๋ช ๋ฒ ์ ์ ํํ
์ ๊ทผํ ์ง primary key ํ์ path('create/', AccountCreateView.as_view(), name = "create"), ] (์ฌ์ง)