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

View file

@ -2,12 +2,11 @@ from django.conf import settings
from django.shortcuts import render, redirect, get_object_or_404
from . import models
from ..utils import default_context
def page(request, slug):
page = get_object_or_404(models.Page, slug=slug)
context = {
'settings': settings,
'page': page,
}
context = default_context(request)
context['page'] = page
return render(request, 'page.html', context)