How do I use 'is not None' in Django Templates?
<p>I want to customize the greeting on my homepage so it's whether:</p>

<p>When logged in and entered first name:</p>

<blockquote>
  <p>John! Where do you want to go?</p>
</blockquote>

<p>else:</p>

<blockquote>
  <p>Where do you want to go?</p>
</blockquote>

<p>This is my template:</p>

<pre><code> {% if user.is_authenticated and not firstname_of_logged_user == None%}
 &lt;h1 class="text-center" id="extraglow"&gt;{{firstname_of_logged_user}}! where do 
 you want to go?&lt;/h1&gt;&lt;/label&gt;
{%else%}
&lt;h1 class="text-center" id="extraglow"&gt;where do you want to go?&lt;/h1&gt;&lt;/label&gt;
                                {%endif%}
</code></pre>

<p>However, it doesn't seem to pick up the "not None" part because if the user is logged in but didn't enter first name it shows like this:</p>

<blockquote>
  <p>! where do you want to
  go?</p>
</blockquote>

<p>and if I say:</p>

<pre><code>firstname_of_logged_user is not None
</code></pre>

<p>it says an error:</p>

<blockquote>
  <p>Unused 'is' at end of if expression.</p>
</blockquote>

<p>Seems like an easy thing but it's not working. What's wrong? Cheers!</p>