1.Django项目错误提示:
RuntimeError: Model class xxx.apps.users.models.User doesn’t declare an explicit app_label and isn’t in an application in INSTALLED_APPS.
2.解决
使用相对路径引用Models模块,把绝对路径都改成相对路径,每个错误的绝对路径都要改成相对路径:
apps.xxx.urls.py
from . import views
apps.xxx.views.py
from .models import xxx