I have an urls.py with this line:
url(r'^logout/$', 'django.contrib.auth.views.logout', name="auth_logout"),
In my template tag i have this line:
<a href="{% url auth_logout %}">Logout</a>
Now, I would like to add the next_page param to the url templatetag, but I can't get it to work. I have tried this:
{% url auth_logout request.path %}"
...and this:
{% url auth_logout request,request.path %}
But none of them works. How can I provide the function with the optional next_page paramter usinging the url templatetag?
Thanks!