0
不是首發我已創建Django的Python應用程序,當我按F5,它會彈出一個Python殼它說Python應用程序在Visual Studio
Available subcommands:
[auth]
changepassword
createsuperuser
[django]
check
compilemessages
createcachetable
dbshell
diffsettings
dumpdata
flush
inspectdb
loaddata
makemessages
makemigrations
migrate
runfcgi
shell
showmigrations
sql
sqlall
sqlclear
sqlcustom
sqldropindexes
sqlflush
sqlindexes
sqlmigrate
sqlsequencereset
squashmigrations
startapp
startproject
syncdb
test
testserver
validate
[sessions]
clearsessions
[staticfiles]
collectstatic
findstatic
runserver
Press any key to continue . . .
但它不會打開任何瀏覽器和應用程序沒有運行,當我按任何鍵時,它只是停止應用程序。
我在想這是什麼問題。奇怪的是,前幾天這個應用程序工作正常,之後我什麼也沒做。
如果你使用Django,你必須手動運行它,進入終端並鍵入python manage.py runserver –
你能夠使用[這些命令](https://djangobook.com/developing-django-visual -studio /#leanpub-auto-integration-of-django-management-commands)來啓動服務器。 – PRMoureu
@MauricioCortazar我已經從VStudio早些時候運行過它,不確定現在是什麼問題。 –