背景
我有一个Django项目("api"),它具有最简单的测试和行为特性。其结构的相关部分如下
code/ # i.e. the Django root is not the root of the project
manage.py
api/
settings.py
# and other Django stuff
app/
# Django app stuff
features/
environment.py
steps/
foo.feature
我正在尝试学习如何使用PyCharm调试django应用程序。在应用程序中,我们有几个自定义的manage.py命令。如果我通过终端(外部或Pycharm的终端)在那里运行,它们运行得很好。
如果我试图从PyCharm (Tool -> run manage.py任务)运行它们以便进行调试,我会得到以下错误:
Unknown command: 'add_question'
Type 'manage.py help' for usage.
我在使用PyCharm之前就开始了Django项目的工作,所以我通过django-admin创建了它,我们将它添加到py
我刚刚升级到pycharm 2022.01,并在使用m1 mac调试python程序时出错:
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in <module>
from _pydevd_bundle_ext import pydevd_cython as mod
ModuleNotFound
Ubuntu 16.04
成功安装了PyCharm 2016.3.3。
启动调试时,会出现声明warning: Debugger speedups using cython not found. Run '"/usr/bin/python3.5" "/usr/share/pycharm/pycharm-community-2016.3.3/helpers/pydev/setup_cython.py" build_ext --inplace' to build的消息。
当然可以。但是,当我尝试执行此命令时(就像其他人所做的那样,显然是成功的),我得