I have this code:
{% if username_is_ok == True %}
<input type="text" name="inputName" placeholder="Name" required>
{% else %}
<div class="control-group error">
<input type="text" name="inputName" placeholder="Name" value="{{ username }}"
class="text-error" required>
<span class="help-block text-error">User already exists</span>
</div>
{% endif %}
And debugger says that username_is_ok == True equals {bool} True. But it goes to the else branch and when page loads I see the error message. I can't see no mistakes and I feel frustrated about that. Can you help me? Thanks.
{% if username_is_ok %}== Truein order to doublecheck value ofusername_is_ok, so this is not a solution.username_is_okequals True??