1、低版本django django 数据库shell操作: 1、python manage.py vaildate 验证数据结构是否有错 2、python manage.py sqlall [appnames] 打印数据库结构 * sql 显示 CREATETABLE调用 * sqlall