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')
示例#2
0
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')
示例#3
0
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')
示例#4
0
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')