X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=myslice%2Furls.py;h=f16f93641b6b2b3db8b89631e5a29e094a99d29e;hb=ac4738d8b9f72414ad94708f99578a62cc01938a;hp=c6fa979edae488972d2a83d0523c33e350491bc0;hpb=b0137a4f50050ca3256f1f9fbe2e29713db78958;p=unfold.git diff --git a/myslice/urls.py b/myslice/urls.py index c6fa979e..f16f9364 100644 --- a/myslice/urls.py +++ b/myslice/urls.py @@ -8,6 +8,11 @@ from django.conf.urls import patterns, include, url from django.template.loader import add_to_builtins add_to_builtins('insert_above.templatetags.insert_tags') +# main entry point (set to the / URL) +default_view='engine.views.test_plugin_view' +# where to be redirected after login +after_login_view='myslice.dashboard.dashboard_view' + urlpatterns = patterns( '', # Examples: @@ -19,10 +24,17 @@ urlpatterns = patterns( # Uncomment the next line to enable the admin: # url(r'^admin/', include(admin.site.urls)), - (r'^/?$', 'slice.views.fake_slice_view'), + (r'^/?$', default_view), + (r'^login-ok/?$', after_login_view), + # seems to be what login_required uses to redirect ... + (r'^accounts/login/$', 'auth.views.login_user'), (r'^login/?$', 'auth.views.login_user'), + (r'^logout/?$', 'auth.views.logout_user'), + (r'^logout/confirm/?$', 'auth.views.do_logout_user'), (r'^slice/?$', 'slice.views.fake_slice_view'), (r'^slice/(?P[\w\.]+)/?$', 'slice.views.fake_slice_view'), (r'^tab/?$', 'slice.views.tab_view'), (r'^scroll/?$', 'slice.views.scroll_view'), + (r'^plugin/?$', 'engine.views.test_plugin_view'), + (r'^dashboard/?$', 'myslice.dashboard.dashboard_view'), )