how to jump from one page to another page in bottle? -


in bottle, how jump form 1 url url in 1 page?

    import webbrowser     webbrowser.open('http://localhost:8080/login.html') 

i tried above, it's not been opened in 1 page! want redirect, not raise 303 or 302 error!

it sounds maybe (?) you're looking way redirect incoming http requests. mention not wanting return 302 or 303 (why not, exactly?), here's how you'd 301 ("permanently moved"):

@route('/hello') def hello():     bottle.redirect('/the/destination/page', 301) 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -