from django.shortcuts import render,get_object_or_404
from .models import Job
# Create your views here.
def home(request):
    jobs=Job.objects.all()
    return render(request,'jobs/home.html',{'jobs':jobs})

def detail(request,job_id):
    detailjob=get_object_or_404(Job,pk=job_id)
    return render(request,'jobs/details.html',{'job':detailjob})

def aboutme(request):
    return render(request,'jobs/aboutme.html',)
