# about/views.py
from django.shortcuts import render
from .models import About, Goal, Value, Testimonial
def about_view(request):
about = About.objects.first() # Fetch the first (and likely only) About instance
goals = Goal.objects.all() # Fetch all Goal instances
values = Value.objects.all() # Fetch all Value instances
testimonials = Testimonial.objects.all() # Fetch all Testimonial instances
return render(request, 'about/index.html', {
'about': about,
'goals': goals,
'values': values,
'testimonials': testimonials
})