<div class="Footer">
{% if user.is_authenticated %}
<p>{% blocktrans with user.username as username %}You are currently logged in as {{ username }}{% endblocktrans %}
- -- <a href="../logout/">{% trans "Logout" %}</a></p>
+ -- <a href="{% url logout %}">{% trans "Logout" %}</a></p>
{% endif %}
</div>
url(r'^influences/character/(?P<object_id>\d+)/$', 'django.views.generic.list_detail.object_detail', chars_dict, name='influences_character_detail'),
url(r'^influences/character/add/$', 'ee.influences.views.addCharacter', name='influences_add_character'),
- url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'base/login.html'}),
- url(r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login'),
+ url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'base/login.html'}, name='login'),
+ url(r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login', name='logout'),
)
if settings.DEBUG: