This commit is contained in:
2024-04-12 10:12:56 +03:00
commit 049f11f557
26 changed files with 608 additions and 0 deletions

9
djpro/menu/views.py Normal file
View File

@@ -0,0 +1,9 @@
from django.shortcuts import render
from .models import MenuItem
def index(request):
menu_items = MenuItem.objects.all()
context = {
'menu_items': menu_items,
}
return render(request, 'base.html', context)