how to add decorators with class in django
from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import login_required
#AS example
class ProfileView(View):
@method_decorator(login_required(login_url='login'))
def get(self, request):
.......