12.detail.html
detail.html
{{ app.title }}
{{ app.text }}
<form method="POST" action="{% url 'app:delete' app.id %}">
{% csrf_token %}
<button type="submit" onclick="return confirm(REALLY?)">DELETE</button>
</form>
view.py
detail detail(request, id):
app = get_object_or_404(App, id=id)
return render(request, 'app/detail.html', {'app': app})