1 from django.conf.urls import patterns, include, url
3 # Uncomment the next two lines to enable the admin:
4 # from django.contrib import admin
7 # to enable insert_above stuff
8 from django.template.loader import add_to_builtins
9 add_to_builtins('insert_above.templatetags.insert_tags')
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'
16 urlpatterns = patterns(
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)),
28 (r'^/?$', default_view),
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 (r'^logout/confirm/?$', 'auth.views.do_logout_user'),
41 (r'^manifold/api/(?P<format>\w+)/?$', 'engine.manifoldproxy.api'),
45 (r'^slice/?$', 'trash.sampleviews.slice_view'),
46 (r'^slice/(?P<name>[\w\.]+)/?$', 'trash.sampleviews.slice_view'),
47 (r'^tab/?$', 'trash.sampleviews.tab_view'),
48 (r'^scroll/?$', 'trash.sampleviews.scroll_view'),
49 (r'^plugin/?$', 'trash.pluginview.test_plugin_view'),
50 (r'^dashboard/?$', 'trash.dashboard.dashboard_view'),