推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
wasp
V2EX  ›  Python

关于 Flask 页面跳转的问题

  •  
  •   wasp · Dec 4, 2018 · 2888 views
    This topic created in 2913 days ago, the information mentioned may be changed or developed.

    flask 怎么实现只有点击某个按钮才能跳转到其他页面,类似于用户只有登陆才能浏览内容(但不是登陆)。

    2 replies  •  2018-12-05 10:55:15 +08:00
    Mrkon
    Mrkon
    Dec 5, 2018
    1
    你的意思是重定向? (redirect)
    还是说在表单中加入可以验证的参数,类似 token
    szyp
    szyp
    Dec 5, 2018
    2
    楼上说的很清楚了,用重定向就可以了啊,不过要设置跳转页面的路由
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1916 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 15:40 · PVG 23:40 · LAX 07:40 · JFK 10:40
    ♥ Do have faith in what you're doing.