我在Pycharm(2021CE)中调试Django(main/4.0.dev20210730183450)项目时遇到问题,下面是我的配置
我可以毫无问题地运行(通过单击运行按钮)项目;服务器运行良好,为流量服务。但是我在调试它时遇到了问题。
这是Pycharm生成的命令
/home/cheng/Environments/proj1_env/bin/python3.8 /snap/pycharm-community/248/plugins/python-ce/helpers/pydev/pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 34965 --file /home/cheng/code/test_web/manage.py runserver
错误消息是
Connected to pydev debugger (build 212.4746.96)
/home/cheng/Environments/proj1_env/bin/python3.8: can't find '__main__' module in ''
此外,如果我在我的config和debug manage.py中删除了“runserver”参数而没有参数,它会打印错误提示
Type 'manage.py help ' for help on a specific subcommand.
我需要一些帮助。谢谢
目前没有回答
相关问题 更多 >
编程相关推荐