from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from django.urls import reverse_lazy
from django.views import View
from django.shortcuts import redirect
class EntryPointView(View):
def get(self, request, *args, **kwargs):
if request.user.is_authenticated is True:
return redirect('common:home')
else:
return redirect('pages:home')
|