Now using Django-reversion & requiring logins for all views
[htsworkflow.git] / samplebc / urls.py
index 2d3ce279fbf267302e07d7935305eeae2dfad15a..27524e886a585e4c896a071d2c1110070c10f29c 100644 (file)
@@ -12,6 +12,16 @@ urlpatterns = patterns('',
     # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
     # to INSTALLED_APPS to enable admin documentation:
     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
+    
+    # Authentication stuff
+    ('^accounts/login/$', 'django.contrib.auth.views.login'),
+    ('^accounts/logout/$', 'django.contrib.auth.views.logout'),
+    ('^accounts/logout_then_login/$', 'django.contrib.auth.views.logout_then_login'),
+    ('^accounts/pwchange/$', 'django.contrib.auth.views.password_change'),
+    ('^accounts/pwchange_done/$', 'django.contrib.auth.views.password_change_done'),
+    # Note view is in samplebc.samples; something doesn't feel right about that, but
+    #   I am not sure where to put it at the moment. -BWK
+    ('^accounts/profile/$', 'samplebc.samples.views.user_profile'),
 
     # Uncomment the next line to enable the admin:
     (r'^admin/(.*)', admin.site.root),