django 框架 无法使用debug模式启动

问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
运行结果及报错内容

run:
D:\work\iov-yyue\cloud-management\venv\Scripts\python.exe D:/work/iov-yyue/cloud-management/manage.py runserver --settings=cloudManagement.settings.dev
Watching for file changes with StatReloader
Performing system checks

System check identified no issues (0 silenced).

You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
March 01, 2022 - 16:21:11
Django version 4.0.2, using settings 'cloudManagement.settings.dev'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.


debug:
D:\work\iov-yyue\cloud-management\venv\Scripts\python.exe "D:\Program Files\JetBrains\PyCharm 2021.2\plugins\python\helpers\pydev\pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 63870 --file D:/work/iov-yyue/cloud-management/manage.py runserver --settings=cloudManagement.settings.dev
Connected to pydev debugger (build 212.4746.96)
D:\work\iov-yyue\cloud-management\venv\Scripts\python.exe: can't find '__main__' module in ''

我的解答思路和尝试过的方法

在这里插入图片描述

通过在启动中配置  --noreload 以解决无法使用debug启动的问题
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值