1👍
✅
Flatpages are just models, like anything else; you can query them and pass the instances around however you like.
from django.contrib.flatpages.models import FlatPage
flatpage = FlatPage.objects.get(url='/about/)
Source:stackexchange.com