简体   繁体   English

使用python-social-auth将Django 1.6迁移到Django 1.10时出错

[英]Error migrating Django 1.6 to Django 1.10 with python-social-auth

I have an application here that was made using version 1.6 of Django, and I am trying to migrate to version 1.10. 我这里有一个使用Django 1.6版制作的应用程序,我正尝试迁移到1.10版。
It turns out I'm going through some problems, and I'm not sure if it's because of differences between versions. 事实证明,我遇到了一些问题,并且不确定是否由于版本之间的差异。 When I run 'python manage.py runserver', the following error occurs: 当我运行“ python manage.py runserver”时,发生以下错误:

socialconnections.SocialInfluence.social_auth: (fields.E300) Field defines a relation with model 'default.UserSocialAuth', which is either not installed, or is abstract. socialconnections.SocialInfluence.social_auth:(fields.E300)字段定义与模型“ default.UserSocialAuth”的关系,该关系未安装或为抽象。

The default.UserSocialAuth class is set to INSTALLED_APPS (social.apps.django_app.default). default.UserSocialAuth类设置为INSTALLED_APPS(social.apps.django_app.default)。 Has anyone ever gone through something like that and have any idea why this is happening? 有没有人经历过这样的事情并且知道为什么会这样? The code snippet that gives error is as follows: 给出错误的代码片段如下:

social_auth = models.OneToOneField(
    'default.UserSocialAuth',
    related_name='social_influence')

Thanks in advance. 提前致谢。

我遵循@alasdair用户的建议,逐步升级,该项目适用于Django 1.7版。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM