Erster View und erstes Template angelegt, URL /speisekarte registriert.

This commit is contained in:
2026-05-15 01:18:38 +02:00
parent bb184ff952
commit 4533fd6402
20 changed files with 71 additions and 1 deletions

View File

@@ -1,3 +1,11 @@
from django.shortcuts import render
# Create your views here.
from django.views.generic import ListView
from .models import Gericht
class GerichtListView(ListView):
model = Gericht
template_name = 'mensa_app/gericht_liste.html' # Der Pfad zum Template
context_object_name = 'alle_gerichte' # Der Name, den wir im Template nutzen