Django 4.1.9要求系统检查与manage.py的问题 – 这是一个错误吗?

huangapple go评论99阅读模式
英文:

Django 4.1.9 requires_system_checks issue with manage.py - is this a bug or not

问题

Django 4.1.9在manage.py中的requires_system_checks问题 - 这是一个错误吗?

我们正在将我们的wagtail 4.2.2应用程序从django 3.1.9升级到django 4.1.9

出现以下错误

  1. 在运行以下命令时
  2. python manage.py runserver_plus 0.0.0.0:8020 --keep-meta-shutdown
  3. 这是一个错误吗,是否可以解决?
  4. 我是否可以对BaseCommand.__init__()进行猴子补丁以设置requires_system_checks = []?```
  5. <details>
  6. <summary>英文:</summary>
  7. Django 4.1.9 requires_system_checks issue with manage.py - is this a bug or not
  8. we are upgrading our wagtail 4.2.2 app to from django 3.1.9 to django 4.1.9
  9. getting the error

TypeError: requires_system_checks must be a list or tuple.

when running

python manage.py runserver_plus 0.0.0.0:8020 --keep-meta-shutdown

  1. Is this a bug and / or can i be worked around
  2. Could I monkey patch BaseCommand.__init__() to set requires_system_checks = []
  3. </details>
  4. # 答案1
  5. **得分**: 3
  6. 已升级依赖项django-extensions到最新版本3.2.1,已解决问题。
  7. <details>
  8. <summary>英文:</summary>
  9. Resolved issue by upgrading dependancy django-extensions to latest version 3.2.1
  10. </details>

huangapple
  • 本文由 发表于 2023年5月24日 22:33:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/76324677.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定