aboutsummaryrefslogblamecommitdiffstats
path: root/ctrack/core/views.py
blob: 107458eedbfbd2a4a4d566bc0054a791fa0d8efe (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                         

                                   
 
               
                       
                                   


                                                             
from django.contrib.auth.decorators import login_required
from django.shortcuts import render


@login_required
def home_page(request):
    if request.user.is_stakeholder:
        return render(request, "pages/stakeholder_home.html")
    else:
        return render(request, "pages/home.html")