X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=myslice%2Furls.py;h=6ab0fd9ee9625b724f11e2b8c2644fe2961d47d6;hb=eb9691015e43aa929eab9ed48f41a05363788a54;hp=b37ee500163c3630d6571583ad00b63d20e2957f;hpb=2b1ae67a6922ed97c96d22dc78090a8aea2c3a4d;p=myslice.git diff --git a/myslice/urls.py b/myslice/urls.py index b37ee500..6ab0fd9e 100644 --- a/myslice/urls.py +++ b/myslice/urls.py @@ -1,4 +1,5 @@ from django.conf.urls import patterns, include, url +from django.conf import settings # Uncomment the next two lines to enable the admin: # from django.contrib import admin @@ -10,6 +11,7 @@ add_to_builtins('insert_above.templatetags.insert_tags') # main entry point (set to the / URL) default_view='trash.pluginview.test_plugin_view' +#default_view='portal.views.PlatformsView' # where to be redirected after login after_login_view='trash.dashboard.dashboard_view' @@ -38,18 +40,25 @@ urlpatterns = patterns( # the manifold proxy # (r'^manifold/proxy/(?P\w+)/?$', 'manifold.manifoldproxy.proxy'), + # + # the slice view # + (r'^slice/?$', 'portal.sliceview.slice_view'), + (r'^slice/(?P[\w\.]+)/?$', 'portal.sliceview.slice_view'), # various trash views # - (r'^tab/?$', 'trash.sampleviews.tab_view'), - (r'^scroll/?$', 'trash.sampleviews.scroll_view'), - (r'^plugin/?$', 'trash.pluginview.test_plugin_view'), - (r'^dashboard/?$', 'trash.dashboard.dashboard_view'), - (r'^slice/?$', 'trash.sliceview.slice_view'), - (r'^slice/(?P[\w\.]+)/?$', 'trash.sliceview.slice_view'), + (r'^tab/?$', 'trash.sampleviews.tab_view'), + (r'^scroll/?$', 'trash.sampleviews.scroll_view'), + (r'^plugin/?$', 'trash.pluginview.test_plugin_view'), + (r'^dashboard/?$', 'trash.dashboard.dashboard_view'), # Portal url(r'^portal/', include('portal.urls')), + # Portal + url(r'^sample/', include('sample.urls')), # Debug url(r'^debug/', include('debug_platform.urls')), + # Static files + (r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}), + )