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='engine.views.test_plugin_view'
13 # where to be redirected after login
14 after_login_view='myslice.dashboard.dashboard_view'
16 urlpatterns = patterns(
19 # url(r'^$', 'myslice.views.home', name='home'),
20 # 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')),
25 # Uncomment the next line to enable the admin:
26 # url(r'^admin/', include(admin.site.urls)),
27 (r'^/?$', default_view),
28 (r'^login-ok/?$', after_login_view),
29 # seems to be what login_required uses to redirect ...
30 (r'^accounts/login/$', 'auth.views.login_user'),
31 (r'^login/?$', 'auth.views.login_user'),
32 (r'^logout/?$', 'auth.views.logout_user'),
33 (r'^logout/confirm/?$', 'auth.views.do_logout_user'),
34 (r'^slice/?$', 'slice.views.fake_slice_view'),
35 (r'^slice/(?P<name>[\w\.]+)/?$', 'slice.views.fake_slice_view'),
36 (r'^tab/?$', 'slice.views.tab_view'),
37 (r'^scroll/?$', 'slice.views.scroll_view'),
38 (r'^plugin/?$', 'engine.views.test_plugin_view'),
39 (r'^dashboard/?$', 'myslice.dashboard.dashboard_view'),