def home(request): if request.user.is_authenticated(): return render(request, 'mobile/profile_page.html') else: return login_view(request, '/mobile/', 'mobile/login.html')
def landing_page(request): if request.user.is_authenticated(): return profile_page(request) else: return login_view(request,'', 'login.html')
def home(request): if request.user.is_authenticated(): return render(request, 'mobile/profile_page.html') else: return login_view(request,'/mobile/','mobile/login.html')
def landing_page(request): if request.user.is_authenticated(): return profile_page(request) else: return login_view(request, '', 'login.html')