Files
postgres-web/pgweb/account/urls.py
Magnus Hagander 88d0b6148d Implement single sign-out for community login 2.0
In order to provide a consistent user experience, we must sign the
user out from the main website if the community site provides a logout
button - else that button will appear not to work...
2011-12-27 19:35:51 +01:00

49 lines
1.8 KiB
Python

from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^$', 'account.views.home'),
# Community authenticatoin
(r'^auth/(\d+)/$', 'account.views.communityauth'),
(r'^auth/(\d+)/logout/$', 'account.views.communityauth_logout'),
# Profile
(r'^profile/$', 'account.views.profile'),
# List of items to edit
(r'^edit/(.*)/$', 'account.views.listobjects'),
# News & Events
(r'^news/(.*)/$', 'news.views.form'),
(r'^events/(.*)/$', 'events.views.form'),
# Software catalogue
(r'^organisations/(.*)/$', 'core.views.organisationform'),
(r'^products/(.*)/$', 'downloads.views.productform'),
# Organisation information
(r'^orglist/$', 'account.views.orglist'),
# Professional services
(r'^services/(.*)/$', 'profserv.views.profservform'),
# Docs comments
(r'^comments/(new)/(.*)/(.*)/$', 'docs.views.commentform'),
# Log in, logout, change password etc
(r'^login/$', 'account.views.login'),
(r'^logout/$', 'account.views.logout'),
(r'^changepwd/$', 'account.views.changepwd'),
(r'^changepwd/done/$', 'django.contrib.auth.views.password_change_done', {
'template_name': 'account/password_change_done.html', }),
(r'^reset/$', 'account.views.resetpwd'),
(r'^reset/done/$', 'django.contrib.auth.views.password_reset_done', {
'template_name': 'account/password_reset_done.html', }),
(r'^reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', 'django.contrib.auth.views.password_reset_confirm', {
'template_name': 'account/password_reset_confirm.html', }),
(r'^reset/complete/$', 'django.contrib.auth.views.password_reset_complete', {
'template_name': 'account/password_reset_complete.html', }),
(r'^signup/$', 'account.views.signup'),
(r'^signup/complete/$', 'account.views.signup_complete'),
)