Commits

Ryan Wilcox  committed eac7853

logout functionality

  • Participants
  • Parent commits 28c869a

Comments (0)

Files changed (2)

File project_dashboard/templates/project/base.html

     <h1>Welcome to the Wilcox Development Project Dashboard</h1>
     <p id="username">
       {% if user.is_authenticated %}
-        Current user: {{ user.username }}
+        Current user: {{ user.username }}. <a href="/accounts/logout">Logout</a>
       {% else %}
         <a href='/accounts/login'>(Log In)</a>
       {% endif %}

File project_dashboard/urls.py

     (r'^projects/', include('project_dashboard.projects.urls')),
     (r'^attachments/', include('attachments.urls')),
     (r'^accounts/login/$', 'django.contrib.auth.views.login'),
+    (r'^accounts/logout/$', 'django.contrib.auth.views.logout'),
 )