2

Possible Duplicate:
Get the current URL within a django template

For example I would like something like this inside the template:

            {% if path == 'login' %}
                <li class="current_page_item"> <a href="{% url login-view %}"> {{ 'Login' }}</a></li>
            {% else %}
                <li> <a href="{% url login-view %}"> {{ 'Login' }}</a></li>
            {% endif %}     
Community
  • 1
  • 1
jck
  • 1,910
  • 4
  • 18
  • 25

1 Answers1

3

request.get_full_path

DrTyrsa
  • 31,014
  • 7
  • 86
  • 86