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
Process finished with exit code 0
出现这种错误,估计是在Pycharm中,直接运行manage.py文件(相当于 python3 manage.py),就会导致这样的错误,manage.py不知道去执行哪个模块!所以,我们要指定它的运行方式 (python3 manage.py runserver)
网友评论