Add a basic index and some models for each area
[climbing.kerkeslager.com] / src / nutrition / views.py
index 91ea44a..fe4bc3b 100644 (file)
@@ -1,3 +1,8 @@
-from django.shortcuts import render
+from django.views.generic.list import ListView
 
-# Create your views here.
+from . import models
+
+class FoodListView(ListView):
+    model = models.Food
+
+index = FoodListView.as_view()