from django.shortcuts import render from novinky.models import Novinka # Create your views here. def index(request): novinky = Novinka.objects.all() context = { "novinky": novinky, } return render(request, "novinky/index.html", context)