title: Django - deployment on Heroku returns different HTML than local host
body: <p>I have a Django app that works great on localhost. When deployed the Heroku, for some reason the app returns different HTMLs. A few examples:</p>
  <ol>
  <li>I have a form with button type submit. This is the template</li>
  </ol>
  <pre><code>        &lt;button type=&quot;button&quot; page=&quot;{{request.resolver_match.view_name}}&quot; type=&quot;submit&quot; id=&quot;bullets_submit&quot;
              class=&quot;btn btn-primary px-5 py-2&quot;&gt;
              Next Step
          &lt;/button&gt;
  </code></pre>
  <p>In localhost everything works well. But, on Heroku, the HTML I receive is without the <code>type=&quot;submit&quot;</code>. Same button just without this attribute.</p>
  <ol start="2">
  <li>I have a for loop that iterates on a model and create a li</li>
  </ol>
  <pre><code>        &lt;div class=&quot;h5 mx-4 px-3 bg-white&quot; style=&quot;position: absolute; top: -20px;&quot;&gt;
              About the role &lt;a href=&quot;{% url 'app:responsibilities' description.pk %}&quot; type=&quot;button&quot; class=&quot;btn btn-outline-light px-2 text-muted border border-0&quot;&gt;&lt;i class=&quot;far fa-edit&quot;&gt;&lt;/a&gt;&lt;/button&gt;
          &lt;/div&gt;
          &lt;div class=&quot;border border-primary rounded shadow p-2 pt-3 m-2&quot;&gt;
              &lt;ul&gt;
                  {% for responsibility in description_responsibilities%}
                  &lt;li&gt;{{responsibility}}&lt;/li&gt;
                  {% endfor %}
              &lt;/ul&gt;
          &lt;/div&gt;
  </code></pre>
  <p>On Heroku, even though the  <code>&lt;i class=&quot;far fa-edit&quot;&gt;</code> is clearly outside of the for loop, it still get generated several times in the HTML I receive from the server, as if it was inside the for loop.</p>
  <p>Any idea what might cause this weird behavior? Or how I can debug it?</p>