title: Django template comparing string
body: <p>I'm new with django. I'm stuck with the problem of comparing string in the template.</p>
  
  <p>I have use ifnotequal tag to compare string. But it is not working.</p>
  
  <p>I have try to output the variable:</p>
  
  <pre><code>{{ request.user.username }} 
  {{ article.creator }}
  </code></pre>
  
  <p>Here I compare:</p>
  
  <pre><code>{% ifnotequal request.user.username article.creator %}
      {# output something #}
  {% endifnotequal %}
  </code></pre>
  
  <p>But when I do the hardcode: It works.</p>
  
  <pre><code>{% ifnotequal "justin" "mckoy" %}
      {# output something #}
  {% endifnotequal %}
  </code></pre>
  
  <p>what is the problem? The <code>article.creator</code> is coming from the database and the <code>user.username</code> is from the request.</p>
  
  <p>Can anyone help me with this issue?</p>