This commit is contained in:
2024-12-20 16:07:11 +07:00
parent 5bdf96851e
commit 1ebf0fda02
8 changed files with 257 additions and 198 deletions
Regular → Executable
+4 -1
View File
@@ -17,14 +17,17 @@ def serviceFrontPage(request):
def serviceDetail(request, slug):
service = get_object_or_404(serviceSection, slug=slug)
seo = servicePageSEO.objects.first()
services = serviceSection.objects.all()
sliders = sliderSection.objects.all()
context = {
'sliders' : sliders,
'seo' : seo,
'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)