2
0
Fork 0

feat: context processor for footer nav

This commit is contained in:
Luca 2024-05-03 22:26:26 +02:00
parent fdc74bbf9e
commit cfbc4ef61c
2 changed files with 3 additions and 4 deletions

View File

@ -9,9 +9,7 @@ def nav(request):
for item in items for item in items
] ]
return { return {"nav_items": nav_items}
"nav_items": nav_items,
}
def footer_nav(request): def footer_nav(request):
@ -22,4 +20,4 @@ def footer_nav(request):
for item in items for item in items
] ]
return {"nav_items": nav_items} return {"footer_nav_items": nav_items}

View File

@ -86,6 +86,7 @@ TEMPLATES = [
"django.contrib.auth.context_processors.auth", "django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages", "django.contrib.messages.context_processors.messages",
"shiftregister.app.context_processors.proc", "shiftregister.app.context_processors.proc",
"shiftregister.core.context_processors.footer_nav",
"shiftregister.core.context_processors.nav", "shiftregister.core.context_processors.nav",
], ],
}, },