move about into context

This commit is contained in:
j 2023-07-26 11:50:09 +02:00
commit cca5833541
6 changed files with 60 additions and 28 deletions

10
app/utils.py Normal file
View file

@ -0,0 +1,10 @@
from django.conf import settings
from .page.models import Page
def default_context(request):
context = {}
context['settings'] = settings
context['about'] = Page.objects.filter(slug="about").first()
return context