Web Application with Django (Vidly) templates:

Hey there, I’m following Mosh’s Python course and I have this issue:

Input:

<h1>Hello</h1>
<table class="table">
  <thead>
    <tr>
      <th>Title</th>
      <th>Genre</th>
      <th>Stock</th>
      <th>Daily Rate</th>
    </tr>
  </thead>
  <tbody>
    {% for movie in movies %}
    <tr>
      <td>{{ movie.title }}</td>
      <td>{{ movie.genre }}</td>
      <td>{{ movie.number_in_stock }}</td>
      <td>{{ movie.daily_rate }}</td>
    </tr>
    {% endfor %}
  </tbody>
</table>

Output:

Hello

Title Genre Stock Daily Rate

Inspect HTML:

I would be very thankful if somebody can help :pray:t3:

Can you show code where you render that html template (view function).