简体   繁体   中英

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.
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:

socialconnections.SocialInfluence.social_auth: (fields.E300) Field defines a relation with model 'default.UserSocialAuth', which is either not installed, or is abstract.

The default.UserSocialAuth class is set to 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版。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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