Check out example codes for "access django object in html". It will help you in understanding the concepts better.

Code Example 1

{% for x in data %}
   <h3>{{x.name}}</h3>
   <h4>{{x.department}}</h4>
 {% endfor %}

Code Example 2

data = model1.objects.all()
     return TemplateResponse(request, 'index.html', {'data': data})

Learn ReactJs, React Native from akashmittal.com