2019年7月23日

关于错误:RuntimeError: Model class lufeiapi.apps.user.models.User doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS 的解决方案

摘要: from lufeiapi.apps.user.models import User # 为什么会报错 即无法使用绝对路径将上述代码改为相对路径即可!原因未知from .models import User上述的解决方案的前提是 在内部的apps.py里的设置如下所示: from django.ap 阅读全文

posted @ 2019-07-23 22:27 michael-chang 阅读(1764) 评论(0) 推荐(0)

导航