python - 实现新的 CSS 设计时必须更改 Flask 端口
问题描述
我正在用烧瓶建立一个网络,但是当我更改 css 代码时,设计不会改变,所以我应该更改新端口以使新的 css 代码工作。
#host
def runFlaskApp():
app.run(host = '127.0.0.1', port = 5003, debug = True, threaded = True)
if __name__== "__main__":
t1 = threading.Thread(target=runFlaskApp())
t1.start()
解决方案
推荐阅读
- ios - 在 Swift 中检测室内 GPS 的当前可用性
- python - EOFError:尝试从维基百科抓取数据时输入不足
- regex - 使用正则表达式匹配列表中字符串中字符的多个实例,但仅匹配以下字符之一
- android - 如何在 Android 中找到不会触发 OutOfMemoryException 的图像大小?
- c# - 如何创建使用字符串作为其搜索参数的 get 方法?(asp.net web api C#)
- c - How can I store a unicode in C?
- nativescript - Nativescript RadListView:如何以编程方式更改所选项目的背景颜色?
- node.js - Lambda 层 node_modules
- python - Pandas: Find first occurrences of elements that appear in a certain column
- python - 如何在 Python 中将 HDF5 文件直接上传到 S3 存储桶