【问题标题】:"PyCharm can't check if the following file been updated" when doing makemigrations/migrate执行 makemigrations/migrate 时“PyCharm 无法检查以下文件是否已更新”
【发布时间】:2017-09-08 16:22:20
【问题描述】:

当我使用 PyCharm 的 manage.py 终端执行 ma​​kemigrationsmigrate 时,我收到以下警告消息:

PyCharm can't check if the following file been updated: [filepath]

我的 webpackbabel-preset-es2015 文件夹中的一百个文件,在我的 static/node_modules 文件夹中

命令执行正确,但我想摆脱终端中的这数百个红色警告。特别是因为我认为迁移需要更长的时间才能执行,因为我有这些。

我可以告诉 PyCharm 停止检查我的 node_modules 甚至 static 文件夹吗?

【问题讨论】:

    标签: django pycharm manage.py makemigrations


    【解决方案1】:

    这不是一个特别出色的解决方案,但您可以在 _jb_utils.py 中注释掉该行,如果您能找到的话。对我来说,在 OS X 上它就在这里:

    ~/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/172.4343.24/PyCharm.app/Contents/helpers/pycharm/_jb_utils.py

    显然,您每次更新 PyCharm 时都必须重做。

    【讨论】:

      猜你喜欢
      • 2016-01-13
      • 2018-04-20
      • 1970-01-01
      • 1970-01-01
      • 2011-12-05
      • 2018-09-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多