from django.shortcuts import render
from .models import Faculty, Department, vips

# Create your views here.
def home(request):
    faculties   = Faculty.objects.all()
    departments = Department.objects.all()
    context     = {
        'faculties': faculties,
        'departments': departments,
    }
    return render(request, 'agri/testhome.html', context=context)


def department(request, pk):
    department = Department.objects.get(pk=pk)
    return render(request, 'agri/department.html', {'department':department})


def info(request):
    vip = vips.objects.all()
    return render(request, 'agri/info.html', {'vips':vip})
85095108fbb52f1fd55f27e04d145e3350bbb2c1
<mask token>


def home(request):
    faculties = Faculty.objects.all()
    departments = Department.objects.all()
    context = {'faculties': faculties, 'departments': departments}
    return render(request, 'agri/testhome.html', context=context)


<mask token>

<mask token>


def home(request):
    faculties = Faculty.objects.all()
    departments = Department.objects.all()
    context = {'faculties': faculties, 'departments': departments}
    return render(request, 'agri/testhome.html', context=context)


<mask token>


def info(request):
    vip = vips.objects.all()
    return render(request, 'agri/info.html', {'vips': vip})

<mask token>


def home(request):
    faculties = Faculty.objects.all()
    departments = Department.objects.all()
    context = {'faculties': faculties, 'departments': departments}
    return render(request, 'agri/testhome.html', context=context)


def department(request, pk):
    department = Department.objects.get(pk=pk)
    return render(request, 'agri/department.html', {'department': department})


def info(request):
    vip = vips.objects.all()
    return render(request, 'agri/info.html', {'vips': vip})

from django.shortcuts import render
from .models import Faculty, Department, vips


def home(request):
    faculties = Faculty.objects.all()
    departments = Department.objects.all()
    context = {'faculties': faculties, 'departments': departments}
    return render(request, 'agri/testhome.html', context=context)


def department(request, pk):
    department = Department.objects.get(pk=pk)
    return render(request, 'agri/department.html', {'department': department})


def info(request):
    vip = vips.objects.all()
    return render(request, 'agri/info.html', {'vips': vip})

from django.shortcuts import render
from .models import Faculty, Department, vips

# Create your views here.
def home(request):
    faculties   = Faculty.objects.all()
    departments = Department.objects.all()
    context     = {
        'faculties': faculties,
        'departments': departments,
    }
    return render(request, 'agri/testhome.html', context=context)


def department(request, pk):
    department = Department.objects.get(pk=pk)
    return render(request, 'agri/department.html', {'department':department})


def info(request):
    vip = vips.objects.all()
    return render(request, 'agri/info.html', {'vips':vip})