from .models import * 在models 前加个点,引用当前目录下的models 转载自:https://blog.csdn.net/qq_27193479/article/details/79549054