회원탈퇴 구현

    [pinterest clone (18)] DeleteView를 이용한 회원탈퇴 구현

    views.py class AccountDeleteView(DeleteView): model = User success_url = reverse_lazy('accountapp:login') template_name = 'accountapp/delete.html' urls.py from django.contrib.auth.views import LoginView, LogoutView from django.urls import path from accountapp.views import hello_world, AccountCreateView, AccountDetailView, AccountUpdateView, AccountDeleteView app_name = 'accountapp' urlpatterns =..