我的Flask应用程序必须进行相当大的计算才能获取某个页面.当Flask正在执行该功能时,另一个用户无法访问该网站,因为Flask忙于大型计算.
有什么方法可以让我的Flask应用程序接受来自多个用户的请求吗?
我想让用户在我的插件的首选项窗口中上传图像(到插件的文件夹).
这是我目前的prefpane:
<prefpane id="tpt-pane" label="Settings">
<preferences>
<preference id="pref_upload" name="addonname.upload" type="file"/>
</preferences>
<hbox align="center">
<label control="upload" value="The file: "/>
<input type="file" preference="pref_upload" id="upload" />
</hbox>
</prefpane>
Run Code Online (Sandbox Code Playgroud)
我有什么方法可以做到这一点(有一个解决方法)?