title: Django - Template with 'if x in list' not working
body: <p>I have a Django template that looks something like this:</p>
  
  <pre><code>{% if thing in ['foo', 'bar'] %}
      Some HTML here
  {% else %}
      Some other HTML
  {% endif %}
  </code></pre>
  
  <p>The problem is it comes back empty. If I switch to this:</p>
  
  <pre><code>{% if thing == 'foo' or thing == 'bar' %}
      Some HTML here
  {% else %}
      Some other HTML
  {% endif %}
  </code></pre>
  
  <p>it works fine. Is there some reason you can't use <code>x in list</code> in Django templates?</p>