有没有办法从VSCODE编辑器运行Django项目?
目前,我使用Windows CMD来运行我的项目。每次在VSCODE上点击“运行”按钮时,它都不会运行该项目。
在pyCharm中,我们可以将“runserver”添加到其脚本参数配置中。VSCODE中是否有类似的东西?
更新
我在VSCODE终端上得到了这个:
Type 'manage.py help <subcommand>' for help on a specific subcommand.
Available subcommands:
[auth]
changepassword
createsuperuser
[contenttypes]
remove_stale_contenttypes
[django]
check
compilemessages
createcachetable
dbshell
diffsettings
dumpdata
flush
inspectdb
loaddata
makemessages
makemigrations
migrate
sendtestemail
shell
showmigrations
sqlflush
sqlmigrate
sqlsequencereset
squashmigrations
startapp
startproject
test
testserver
[sessions]
clearsessions
[staticfiles]
collectstatic
findstatic
runserver
[Done] exited with code=0 in 9.449 seconds