after a lot of research, I still have not found how to do it: my purpose is to be able to separate my json in keys/values to only display what it seems to me necessary (for example the title, the authors, ...). It's a Django Site web. That I have done :
In models.py
class Production(models.Model):
titre = models.CharField(max_length=255, blank=True)
publis = JSONField()
def __str__(self):
return '%s' % (self.titre)
class Meta:
db_table = 'Production'
In Views.py
def post_json(request):
posts = Production.objects.all()
return render(request, 'appli/post_json.html', {'posts': posts})
*And the template : post_json.html *
This show me fully my json data
{% for post in posts %}
<div>
<p>aa = {{ post.publis }}</p>
</div>
{% endfor %}
And this it's what I'm trying to show only the authors
<h1>Publications lalala</h1>
{% for post in posts %}
aa = {{ post.publis }}
<p> Num : {{ aa.UT }}</p>
<p>Auteur : {{ aa.AU }} </p>
{% endfor %}
The display on my web page : enter image description here
Thank you in advance for your help (sorry if there are mistakes of english I am french)