how to create a views which can disable any account in django code example
Example: loginrequiredmixin
from django.contrib.auth.mixins import LoginRequiredMixin
LOGIN_URL = 'your_url'
from django.contrib.auth.mixins import LoginRequiredMixin
LOGIN_URL = 'your_url'