Open janus opened 12 years ago
user.py
user_app = bottle.Bottle() @user_app.route('/login') def login(): redirect("/index")
app.py
from user import user_app root_app = bottle.Bottle() @root_app.route('/index') def index(): return "Bottle is awesome"
root_app.mount('/user', user_app)
I would like to redirect from one file to another, is this possible?
Read this thread in Google Groups https://groups.google.com/group/bottlepy/browse_thread/thread/642049a6ae1d725e/5c1a745bb0d9d595?hl=en&lnk=gst&q=routes#5c1a745bb0d9d595
user.py
user_app = bottle.Bottle() @user_app.route('/login') def login(): redirect("/index")
app.py
from user import user_app root_app = bottle.Bottle() @root_app.route('/index') def index(): return "Bottle is awesome"
root_app.mount('/user', user_app)
I would like to redirect from one file to another, is this possible?