Use django's auth code for login/logout instead of rolling our own

This commit is contained in:
Trever Fischer
2012-03-04 23:40:35 -05:00
parent 93ba20c538
commit 868e38896e
6 changed files with 4 additions and 32 deletions

View File

@@ -43,7 +43,7 @@
</div>
<ul>
<li><a href="{% url user_profile %}">Your Profile</a></li>
<li><a href="{% url profiles.views.logout %}">Logout</a></li>
<li><a href="{% url django.contrib.auth.views.logout %}">Logout</a></li>
{% if user.is_staff or user.is_superuser %}
<li><a href="{% url admin:index %}">Admin</a></li>
{% endif %}