update
This commit is contained in:
+4
-2
@@ -1,4 +1,4 @@
|
||||
from django.shortcuts import render
|
||||
from django.shortcuts import render, get_object_or_404
|
||||
from about.models import *
|
||||
from home.models import *
|
||||
|
||||
@@ -6,11 +6,13 @@ def aboutPageFront(request):
|
||||
seo = aboutPageSEO.objects.first()
|
||||
aboutpage = aboutPage.objects.first()
|
||||
about = aboutSection.objects.first()
|
||||
sliders = sliderSection.objects.all()
|
||||
|
||||
context = {
|
||||
context ={
|
||||
'seo' : seo,
|
||||
'aboutpage' : aboutpage,
|
||||
'about' : about,
|
||||
'sliders' : sliders,
|
||||
}
|
||||
|
||||
return render(request, 'front/main/about.html', context)
|
||||
|
||||
Reference in New Issue
Block a user