【发布时间】:2018-05-24 13:09:46
【问题描述】:
有没有办法从 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
【问题讨论】:
标签: django visual-studio-code vscode-settings