diff --git a/rattail_demo/web/templates/mobile/base.mako b/rattail_demo/web/templates/mobile/base.mako deleted file mode 100644 index 3341118..0000000 --- a/rattail_demo/web/templates/mobile/base.mako +++ /dev/null @@ -1,4 +0,0 @@ -## -*- coding: utf-8 -*- -<%inherit file="tailbone:templates/mobile/base_external_toolbars.mako" /> - -${parent.body()} diff --git a/rattail_demo/web/views/__init__.py b/rattail_demo/web/views/__init__.py index b18799b..5bd6d9a 100644 --- a/rattail_demo/web/views/__init__.py +++ b/rattail_demo/web/views/__init__.py @@ -5,27 +5,9 @@ Web views from __future__ import unicode_literals, absolute_import -from tailbone import views as base - - -def bogus_error(request): - """ - A special view which simply raises an error, for the sake of testing - uncaught exception handling. - """ - raise Exception("Congratulations, you have triggered a bogus error.") - def includeme(config): - # TODO: merge these views into core/common - config.add_route('home', '/') - config.add_view(base.home, route_name='home', renderer='/home.mako') - config.add_route('mobile.home', '/mobile/') - config.add_view(base.home, route_name='mobile.home', renderer='/mobile/home.mako') - config.add_route('bogus_error', '/bogus-error') - config.add_view(bogus_error, route_name='bogus_error', permission='admin') - # core views config.include('rattail_demo.web.views.common') config.include('rattail_demo.web.views.auth')