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