django-social-auth에서 python-social-auth로 프로젝트를 포팅합니다. 나는 문서의 instructions을 따라,하지만 난 프로젝트의 테스트 (./manage.py 테스트) 나는 다음과 같은 오류 얻을 실행하려고하면django-social-auth에서 python-social-auth로 이식 할 때 현장 사용자를위한 접근 자
Creating test database for alias 'default' ...
CommandError: One or more models did not validate:
default.usersocialauth: Accessor for field 'user' clashes with related field 'User.social_auth'. Add a related_name argument to the definition for 'user'.
default.usersocialauth: Reverse query name for field 'user' clashes with related field 'User.social_auth'. Add a related_name argument to the definition for 'user'.
./manage.py syncdb를 작업을 마이그레이션 ./manage을 (문서에서 언급했듯이) python-social-auth의 모델 테이블 이름이 django-social-auth에서 사용되는 모델 테이블과 호환되도록 정의 되었기 때문에 예상대로 데이터를 마이그레이션 할 필요가 없다.
'INSTALLED_APPS'에 libs가 설치되어 있고 정의되어있을 가능성이 있습니까? – omab
안녕하세요. 답장을 보내 주셔서 감사합니다. INSTALLED_APPS에서 django-social-auth을 제거했습니다. 다음은 제 3의 설치된 응용 프로그램 목록입니다.'INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites' , 'django.contrib.messages', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'django.contrib.humanize', '등록', '벌', '장고 .contrib.admin ', '건초 더미 ', '남쪽 ', 'djcelery ', 'django_extensions ', 'social.apps.django_app.default ', 'sorl.thumbnail ' )'다시 한 번 감사드립니다. – DanielS
지금 작동합니까? – omab