标签:
django-admin.py startproject mysite --生成一个mysite的project,
cd mysite,--看到文件db.sqlite3和manage.py两个文件,db.sqlite3是数据库文件,manage.py可是用来做什么呢?
manage.py是一个命令行工具,他可以调用django shell和数据库,具体查看他都有哪些命令,使用python manage.py -h后出现
[auth]
changepassword
createsuperuser
[django]
check
compilemessages
createcachetable
dbshell
diffsettings
dumpdata
flush
inspectdb
loaddata
makemessages
makemigrations
migrate
runfcgi
shell
sql
sqlall
sqlclear
sqlcustom
sqldropindexes
sqlflush
sqlindexes
sqlinitialdata
sqlmigrate
sqlsequencereset
squashmigrations
startapp
startproject
syncdb
test
testserver
validate
[sessions]
clearsessions
[staticfiles]
collectstatic
findstatic
runserver
标签:
原文地址:http://my.oschina.net/yusi/blog/398891