只要是加上from .models import UserProfile 这个引用 就会报错 查了2小时没查出来原因
"application was loaded. " % (module, name))
RuntimeError: Model class apps.users.models.UserProfile doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded.
需要安装的库都安装了(future,six等)
已经把apps目录mark成sourceroot了
在setting里配置了base_dir了(sys.path.insert(0, os.path.join(BASE_DIR, 'apps'))
)
users这个app也注册了(INSTALLED_APPS = (
)