Django如何启动服务

Posted mjxu4636

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Django如何启动服务相关的知识,希望对你有一定的参考价值。

之前在启动后台服务的时候,一直run的manage.py,得到的是一堆:

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

最终才知道要选择项目名,运行才可以。

以上是关于Django如何启动服务的主要内容,如果未能解决你的问题,请参考以下文章