DRF 报错:RuntimeError: Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
摘要:
该错误发生于将'django.contrib.contenttypes'注释之后 该组件的功能见如下链接: https://www.cnblogs.com/xiugeng/p/9831665.html drf的APIView内部会走认证源码,相关代码导致的报错,怎么解决呢?就是在settings.p 阅读全文
posted @ 2024-06-22 21:12 gagagjgj 阅读(18) 评论(0) 推荐(0) 编辑