今天在用pytohn写后端时,遇到的一个异常。
RuntimeError: Model class student.models.Student doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
我明明已经在setting里做好了配置
urls写的也正确
然后就活活抛异常,在查阅了半小时的资料后终于发现
这个位置 路径写恢复了,导致异常,在apps.py下 name后的apps.删掉即可