Answer the question
In order to leave comments, you need to log in
Why doesn't it render in a Django template?
I can not understand why the data is not displayed from the table in the Html template
def info_profile(request):
profile = Profile.objects.all()
return render(request, 'profiles/profile.html', locals())
<div class="col-md-3 col-lg-3 col-sm-6 col-xs-6 leftbars">
{% for Profile in profile %}
{{ profile.region }}
{% endfor %}
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question