Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个烧瓶应用程序并使用一些与主干的集成。但是由于flask wsgi,我不能使用骨干路由器。但是我想拥有这个应用程序的骨干路由器历史机制。我知道我可以使用谷歌分析,但这是另一回事。我想记录所有浏览过的网址并希望烧瓶记录它。我该怎么做?
在 Flask 中从服务器端记录每个 url 的最简单解决方案是@before_request处理程序
@before_request
@before_request def log_url(): save(request.url)