@ -3,7 +3,12 @@
{% block content %}
<h1>Zde nic neni</h1>
<h1>{{ novinka.titulek }}</h1>
{{ novinka.autor }} <br>
{{ novinka.datum }} <br>
<p>
{{ novinka.zprava }}
</p>
<a href="{% url 'index' %}">zpět</a>
@ -13,4 +13,5 @@ def index(request):
def novinka(request, novinka_id):
return render(request, "novinky/novinka.html")
context = {"novinka": Novinka.objects.get(id=novinka_id),}
return render(request, "novinky/novinka.html", context)