title: Objects all doesn't give ms anything inside the view method
body: <p>I'm developing a new web app. I want to display data from the database to the html template. I don't get any errors but I don't get the data inside my views methode using 'Objects.all()'. When I tried the django shell it works.
  I am using postgres database
  <a href="https://i.stack.imgur.com/Y4IjM.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <pre><code>#models.py
  from django.db import models
  from datetime import datetime
  
  class Catégorie(models.Model):
      désignation = models.CharField(max_length=200)
      Description = models.TextField(blank=True)
      Quantité_de_Stock = models.IntegerField()
      photo_main = models.ImageField(upload_to='photos/%Y/%m/%d/')
      est_publié = models.BooleanField(default=True)
      date_de_modification = models.DateTimeField(default=datetime.now, blank=True)
  
      def __str__(self):
          return self.désignation
  
  #views.py
  from django.shortcuts import render
  from .models import Catégorie
  
  def index(request):
      Catégorie_list=Catégorie.objects.all()
      context = {
       'Catégorie_list':Catégorie_list, 
      }
      return render(request,'articles/Category.html',context)
  #html
  &lt;div class="row"&gt;
  
                  {% if articles %}
                      {% for category in Catégorie_list %}
                          &lt;div class="col-md-6 col-lg-4 mb-4"&gt;
                              &lt;div class="card listing-preview"&gt;
                                  &lt;img class="card-img-top" src="{{ category.photo_main.url }}" alt=""&gt;
                                  &lt;div class="card-body"&gt;
                                      &lt;div class="listing-heading text-center"&gt;
                                          &lt;h4 class="text-primary" &gt;{{ category.désignation }}&lt;/h4&gt;
  
                                      &lt;/div&gt;
                                      &lt;hr&gt;
                                      &lt;a href="article.html" class="btn btn-primary btn-block"&gt;Voir la catégorie&lt;/a&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      {% endfor %}
  
                  {% else %}
                      &lt;div class="col-md-12"&gt;
                          &lt;p&gt;Aucune catégorie disponible&lt;/p&gt;
                      &lt;/div&gt;
                  {% endif %}
  
              &lt;/div&gt;
  
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/TMMin.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p><a href="https://i.stack.imgur.com/Pm6nF.png" rel="nofollow noreferrer">enter image description here</a></p>