Exemple #1
0
def home(request):
    if request.user.is_authenticated():
        return render(request, 'mobile/profile_page.html')
    else:
        return login_view(request, '/mobile/', 'mobile/login.html')
Exemple #2
0
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')
Exemple #4
0
def landing_page(request):
    if request.user.is_authenticated():
        return profile_page(request)
    else:
        return login_view(request, '', 'login.html')