0

I have tried with

{% if request.path == "/{{user.username}}" %}
                  You are in Contact</p>
  {% else %}
            nono

But It doesn't work

Ibu
  • 42,752
  • 13
  • 76
  • 103
Nelly Louis
  • 157
  • 2
  • 8

1 Answers1

2

If it fails, output something useful so you can see why:

{% if request.path == "/{{ user.username }}" %}
    You are in Contact
{% else %}
    {{ request.path }} is not the same as /{{ user.username }}
{% endif %} 
Mark Bailey
  • 1,617
  • 1
  • 7
  • 13