This commit is contained in:
ariska committed 2024-11-19 13:00:24 +07:00
commit 45e3c1f698
3462 files changed
+617437

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
from django.shortcuts import render, get_object_or_404
from service.models import servicePageSEO
from home.models import serviceSection
def serviceFrontPage(request):
seo = servicePageSEO.objects.first()
services = serviceSection.objects.all()
context ={
'seo' : seo,
'services' : services,
}
return render(request, 'front/main/service.html', context)
def serviceDetail(request, slug):
service = get_object_or_404(serviceSection, slug=slug)
services = serviceSection.objects.all()
context = {
'service' : service,
'services' : services,
}
return render(request, 'front/main/partial/service-details.html', context)
def error_404(request, exception):
return render(request, 'error/404.html', status=404)