from ferris.core import routing, plugins # Routes all App handlers routing.auto_route() # Default root route # routing.default_root() routing.redirect('/', to='/index') # Plugins plugins.enable('settings') plugins.enable('oauth_manager')
from ferris.core.routing import auto_route from ferris.core.plugins import enable_plugin from ferris.app import app as ferris_app # Routes all App handlers auto_route() # Default root route from webapp2 import Route from ferris.handlers.root import Root ferris_app.router.add(Route('/', Root, handler_method='root')) # Plugins enable_plugin('tiny_mce') enable_plugin('oauth_manager') #enable_plugin('template_tester')
from ferris.core import routing, plugins from ferris.controllers.download import Download # Routes all App handlers routing.auto_route() routing.route_controller(Download) # Default root route routing.redirect('/', to='/main') # Plugins #plugins.enable('settings') #plugins.enable('oauth_manager') plugins.enable('angular')
from ferris.core.routing import auto_route from ferris.core.plugins import enable_plugin from ferris.app import app as ferris_app # Routes all App handlers auto_route() # Default root route from webapp2 import Route from ferris.handlers.root import Root ferris_app.router.add(Route('/', Root, handler_method='root')) # Plugins enable_plugin('tiny_mce') enable_plugin('oauth_manager')