问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
运行结果及报错内容
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启动的问题