added misc plugins towards wizards for the portal
[myslice.git] / myslice / urls.py
1 from django.conf.urls import patterns, include, url
2
3 # Uncomment the next two lines to enable the admin:
4 # from django.contrib import admin
5 # admin.autodiscover()
6
7 # to enable insert_above stuff
8 from django.template.loader import add_to_builtins
9 add_to_builtins('insert_above.templatetags.insert_tags')
10
11 # main entry point (set to the / URL)
12 default_view='trash.pluginview.test_plugin_view'
13 # where to be redirected after login
14 after_login_view='trash.dashboard.dashboard_view'
15
16 urlpatterns = patterns(
17     '',
18     # Examples:
19     # url(r'^$', 'myslice.views.home', name='home'),
20     # url(r'^myslice/', include('myslice.foo.urls')),
21     # Uncomment the admin/doc line below to enable admin documentation:
22     # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
23     # Uncomment the next line to enable the admin:
24     # url(r'^admin/', include(admin.site.urls)),
25     #
26     # default / view
27     #
28     (r'^/?$', default_view),
29     #
30     # login / logout
31     #
32     (r'^login-ok/?$', after_login_view),
33     # seems to be what login_required uses to redirect ...
34     (r'^accounts/login/$', 'auth.views.login_user'),
35     (r'^login/?$', 'auth.views.login_user'),
36     (r'^logout/?$', 'auth.views.logout_user'),
37     #
38     # the manifold proxy
39     #
40     (r'^manifold/proxy/(?P<format>\w+)/?$', 'manifold.manifoldproxy.proxy'),
41     #
42     # various trash views
43     #
44     (r'^tab/?$', 'trash.sampleviews.tab_view'),
45     (r'^scroll/?$', 'trash.sampleviews.scroll_view'),
46     (r'^plugin/?$', 'trash.pluginview.test_plugin_view'),
47     (r'^dashboard/?$', 'trash.dashboard.dashboard_view'),
48     (r'^slice/?$', 'trash.sliceview.slice_view'),
49     (r'^slice/(?P<slicename>[\w\.]+)/?$', 'trash.sliceview.slice_view'),
50     # Portal
51     url(r'^portal/', include('portal.urls')),
52 )