python manage.py inspectdb --database name(name为数据库的名称) 转载于:https://www.cnblogs.com/zhangtq/p/10536834.html