我正在尝试使用 manage.py 作为启动文件来运行 Django 项目。我可以使用命令提示符运行它python manage.py runserver
并手动导航到该站点。我希望当我在 Visual Studio 中按下运行按钮时,它将启动服务器并打开我的浏览器以显示该页面,但它只是打开了 manage.py 的选项:
Type 'manage.py help <subcommand>' for help on a specific subcommand.
Available subcommands:
[auth]
changepassword
createsuperuser
等等
我试过重新设置manage.py为启动文件,重新设置启动项目,将Python Tools Interactive Windows的启动脚本设置为manage.py。
提前感谢您的帮助。