flask - 从包含路径参数的路径提供 Dash
问题描述
有没有人设法从相对和动态路径后面的烧瓶中提供破折号应用程序。我想从 /account//dashapp 提供仪表板,然后将其用作我的仪表板应用程序的上下文。
我发现了很多使用静态路径的例子,但不是动态路径。对于亲戚,我正在使用:
dash_app.config.update({
'routes_pathname_prefix': './',
'requests_pathname_prefix': './'
})
和
@app.route('/account/<int:account-id>/dashapp')
解决方案
推荐阅读
- php - MongoDb 使用 PHP 获取文档子集
- java - 什么是“FLF”,[03]
- r - 如何在 R/exams 中使用 LaTeX 包?
- android - 如何在没有参考的情况下在 Kotlin 中收听另一个类的一些 var
- prometheus - 如何使用 Prometheus 创建一个简单的 Count 指标
- c++ - 从文件中读取 2 个整数和一个字符串时出现问题
- dialogflow-es - 使用对话流聊天机器人,Slack 中是否提供“Google 上的操作”?
- mongodb - 嵌套字段 2 级别上的 Mongodb 聚合
- powershell - 获取 WinEvent 脚本
- .net - Wix BootStrapper exe无法在客户端机器上运行