title: How do I use iexact to check if an item matches case-insensitively in Django?
body: <p>I'm trying to use <code>iexact</code> in my Django app.  </p>
  
  <p>I have items in my database like <code>test</code>, <code>TEST</code>, <code>tEsT</code>, and <code>TesT</code>.</p>
  
  <p>I'm trying to find out if any form of <code>test</code> is my database. It seems like I need to use <code>iexact</code> but however I try to use it I'm getting an error.</p>
  
  <p>Here's a snippet of my code. </p>
  
  <pre><code>def item_search(x):
      item = x.column_in_database
  
      if test__iexact = 'test' in item:
         return 1; #this is just pseduocode for stackoverflow
      elif
         return 0; #this is just pseduocode for stackoverflow
  </code></pre>
  
  <p>I've tried a variety of ways but I still can't get it to work.</p>