From 7921132788e55c0714af8b33ed2105ff6a1dba54 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 6 Jul 2010 21:55:44 +0200 Subject: cleanup and working membership list --- coip/urls.py | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'coip/urls.py') diff --git a/coip/urls.py b/coip/urls.py index d24cc15..eda9440 100644 --- a/coip/urls.py +++ b/coip/urls.py @@ -2,16 +2,21 @@ from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin +from django.contrib.auth.views import login +from settings import ADMIN_MEDIA_ROOT +from settings import MEDIA_ROOT admin.autodiscover() urlpatterns = patterns('', - # Example: - # (r'^coip/', include('coip.foo.urls')), - - # 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')), - - # Uncomment the next line to enable the admin: - (r'^admin/', include(admin.site.urls)), + (r'^admin-media/(?P.*)$', 'django.views.static.serve',{'document_root': ADMIN_MEDIA_ROOT}), + (r'^site-media/(?P.*)$', 'django.views.static.serve',{'document_root': MEDIA_ROOT}), + (r'^admin/', include(admin.site.urls)), + # Login/Logout + (r'^accounts/login/$', login,{'template_name': "login.html"}), + (r'^accounts/login-federated/$', 'coip.apps.auth.views.accounts_login_federated'), + (r'^accounts/logout/$', 'coip.apps.auth.views.logout'), + # Profiles and user information + (r'^user/merge/?P.+$', 'coip.apps.userprofile.views.merge'), + (r'^user/merge$', 'coip.apps.userprofile.views.merge'), + (r'^user/home$', 'coip.apps.userprofile.views.home'), ) -- cgit v1.1