小编Mr.*_*bot的帖子

如何在 Intellij 中以调试模式调试 spring boot maven 项目?

我使用以下命令从我的终端运行我的 Maven 项目开发配置文件

 sudo mvn spring-boot:run -Dspring.profiles.active=dev
Run Code Online (Sandbox Code Playgroud)

如何使用给定的配置文件运行我的项目以在调试模式下运行。如何为此在intellij中设置配置?

spring jetbrains-ide intellij-idea maven spring-boot

6
推荐指数
2
解决办法
4103
查看次数

如何在 django 项目中运行 python 脚本?

我无法在我的 django 项目中运行 python 脚本。

  1. 我已经创建了一个目录 mkdir scripts
  2. 然后我用 touch scripts/__init__.py
  3. 然后我使用创建我的python脚本 touch scripts/update_keyword.py
  4. 这是我的脚本的代码

def run():
    # Fetch all questions
    print("run script")


Run Code Online (Sandbox Code Playgroud)

然后我在以下命令的帮助下运行我的脚本:

python manage.py runscript update_keyword.py

Run Code Online (Sandbox Code Playgroud)

现在我收到以下错误:

Unknown command: 'runscript'
Type 'manage.py help' for usage.


Run Code Online (Sandbox Code Playgroud)

我已经关注这个博客https://django-extensions.readthedocs.io/en/latest/runscript.html。请帮助。

python django python-3.x django-1.11

2
推荐指数
1
解决办法
3872
查看次数