问题描述
自Google App Engine Python SDK的最新版本发布以来,可以使用。我有一个默认模块和另一个模块的Python应用程序。要在开发服务器中启动该模块,开发服务器必须像这样运行:
dev_appserver.py app.yaml othermodule .yaml
当我添加 app.yaml othermodule.yaml $ c
这是因为PyCharm在命令的末尾添加了一个点运行开发服务器,如下所示:
dev_appserver.py app.yaml othermodule.yaml。
是否可以删除点,还是必须等到PyCharm中修复这个点?
您可以通过创建一个新的运行配置。
选择Python配置,然后填写如下:
$ b
- 脚本:
/ path / to / your / dev_appserver.py
- 脚本参数:
dispatch.yaml module1.yaml module2.yaml
- 工作目录:
/ path / to / your / appengine / project
它对我来说就像这样很好。调度员正在启动,我已经像PyCharm一样获得了所有日志。
Since the latest release of the Google App Engine Python SDK, it's possible to use modules. I have a Python application with a default module and another module. To start the module in the development server, the development server has to be run like this:
dev_appserver.py app.yaml othermodule.yaml
When I add app.yaml othermodule.yaml
to "Additional options" in the Run/Debug configuration of PyCharm and then run the development server, I get the following error message:
This is because PyCharm adds a dot at the end of the command to run the development server, like this:
dev_appserver.py app.yaml othermodule.yaml .
Is it possible to remove the dot, or do I have to wait until this is fixed in PyCharm? Before there were modules, there was no need for this.
You can go around this for the time being by just creating a new Run Configuration.Chose Python configuration, then fill like this:
- script:
/path/to/your/dev_appserver.py
- script parameters:
dispatch.yaml module1.yaml module2.yaml
- working directory:
/path/to/your/appengine/project
It works just fine like this for me. The dispatcher is launching properly and I've got all the logs like before in PyCharm.
这篇关于使用PyCharm中的模块运行App Engine开发服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!