title: My Django if statement do not work correctly
body: <p>I have created a admin panel on the frontend and would like to show different layouts if they are on the index.html or if they are on pages after /admin e.g:</p>
  
  <pre><code>/admin/dashboard
  /admin/posts
  /admin/media
  </code></pre>
  
  <p><strong>My if statement:</strong></p>
  
  <pre><code>{% if request.path == "/admin" %}
  </code></pre>
  
  <p>It doesn't work for some reason and I can't figure out why. This is an example of the whole if:</p>
  
  <pre><code>&lt;div class="row"&gt;
  
  {% if request.path == "/admin" %}
  &lt;div class="col-md-full"&gt;
  {% else %}
  &lt;div class="col-md-7 left"&gt;
    {% block main %}{% endblock %}
  &lt;/div&gt;
  {% endif %}
  
  {% if request.path == "/admin" %}
  {% trans "Empty" %}
  {% else %}
  &lt;div class="col-md-3 right"&gt;
      &lt;div class="panel panel-default"&gt;
      &lt;div class="panel-body"&gt;
      {% block right_panel %}
      {% endblock %}
      &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  {% endif %}
  
  &lt;/div&gt;
  </code></pre>