def store(request):
name = Store.objects.all()
context = {'names': name}
return render(request, 'store.html', context)
<div class="container">
<h1 class="font-weight-light text-center text-lg-left mt-4 mb-0">Mağazalar</h1>
<hr class="mt-2 mb-5">
<div class="row text-center text-lg-left">
<div class="col-lg-3 col-md-4 col-6">
<a href="#" class="d-block mb-4 h-100">
{% for name in names %}
<p> {{ name }} </p>
{% endfor %}
<img class="img-fluid img-thumbnail" rel="nofollow" target="_BLANK" src="" alt="">
</a>
</div>
</div>
</div>
def store(request):
name = Store.objects.all()
context = {'names': name}
return render(request, 'store.html', context)
<div class="container">
<h1 class="font-weight-light text-center text-lg-left mt-4 mb-0">Mağazalar</h1>
<hr class="mt-2 mb-5">
<div class="row text-center text-lg-left">
<div class="col-lg-3 col-md-4 col-6">
<a href="#" class="d-block mb-4 h-100">
{% for name in names %}
<p> {{ name }} </p>
{% endfor %}
<img class="img-fluid img-thumbnail" rel="nofollow" target="_BLANK" src="" alt="">
</a>
</div>
</div>
</div>