M
M
ma3xak2018-04-28 09:59:25
Django
ma3xak, 2018-04-28 09:59:25

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>

No errors, but no output

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question