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

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

posted @ 2018-04-20 12:21  那个她  阅读(306)  评论(0编辑  收藏  举报