[UWP] [JS]我可以,如果是这样,我如何在我的uwp javascript应用程序中实现flask? [英] [UWP][JS] Can I and if so how do I implement flask into my uwp javascript app?

查看:78
本文介绍了[UWP] [JS]我可以,如果是这样,我如何在我的uwp javascript应用程序中实现flask?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将基于Flask的Web应用程序转换为Windows应用商店的UWP JavaScript应用程序,但我不确定我是否可以或如何在UWP应用程序中实现flask。有些页面需要烧瓶代码,不能没有。如果有人知道
怎么样,请告诉我。我将非常感激。

解决方案


嗯,你可以直接 烧瓶Visual Studio 2019中的Web项目。在VS2019中,根据此文档支持Flask Web项目:教程:
开始使用Visual Studio中的Flask Web框架


如果你不想使用它,UWP应用程序目前不支持Flask,因为它是一个Python框架。也许您可以尝试在其他Web服务中保存基于Flask的Web,然后将这些Web的URL添加到Manifest文件中的内容URL。
然后在您的应用中需要时访问这些网页,而不是将这些网页添加到您的包中。


祝您好运,


Roy


I am trying to turn my Flask based web app into a UWP JavaScript app for the windows store, but I am not sure if I can or how to implement flask into the UWP app. There are some pages that require flask code and will not work without. If anyone know how please let me know. I would be extremely grateful.

解决方案

Hi,

Well, you could directly Flask Web Project in Visual Studio 2019. In VS2019, the Flask Web Project is supported according to this document:Tutorial: Get started with the Flask web framework in Visual Studio.

If you don't want to use that, Flask is not currently supported in UWP apps as it is a Python framework. Perhaps you could try to hold the Flask based web in other web service, then add the URL of these webs to the content URLs in the Manifest file. Then access these webs when you need in your app instead of adding these webs to your package.

Best regards,

Roy


这篇关于[UWP] [JS]我可以,如果是这样,我如何在我的uwp javascript应用程序中实现flask?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆