通过数据库生成Model python manage.py inspectdb > mysite/myapp/models.py 生成Model 后也可以在执行 生成数据库语句 生成其他model对应的数据库 python manage.py syncdb