0

I have tried with

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

But It doesn't work

Ibu
  • 41,298
  • 13
  • 73
  • 100
Nelly Louis
  • 137
  • 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,352
  • 6
  • 13