move about into context
This commit is contained in:
parent
f129e7abb0
commit
cca5833541
6 changed files with 60 additions and 28 deletions
10
app/utils.py
Normal file
10
app/utils.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue