Why not display in a Django template?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
10 views
Can't understand why not output the data from the table in the Html template
def info_profile(request): profile = Profile.objects.all() return render(request, 'profiles/profile.html', locals())

{% for Profile in profile %} {{ profile.region }} {% endfor %} 

No error gives, but the data does not take
by | 10 views

1 Answer

0 like 0 dislike
Get familiar with the variable naming.
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
4 answers
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
35,406 users