GithubHelp home page GithubHelp logo

deleted a user about django-rest-auth HOT 5 CLOSED

tivix avatar tivix commented on August 17, 2024
deleted a user

from django-rest-auth.

Comments (5)

nickspacek avatar nickspacek commented on August 17, 2024 1

Here's my list of apps:

'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'rest_framework',
'rest_framework.authtoken',
'rest_auth',
'allauth',
'allauth.account',
'rest_auth.registration',

I'm getting this error as well. I haven't included allauth.socialaccount as it was listed as optional, but when I delete a user I get this error as well.

from django-rest-auth.

nickspacek avatar nickspacek commented on August 17, 2024 1

I tracked down this bug, it is due to registration/serializers.py#L7. This line of code ends up registering the SocialAccount model which adds the ForeignKey to User.

from django-rest-auth.

ironwebstar avatar ironwebstar commented on August 17, 2024 1

Add this into list of apps:
'allauth.socialaccount',
And, please try migrate again.
I have fixed same issue with above way.

from django-rest-auth.

zombiecong avatar zombiecong commented on August 17, 2024

i didnt use the socialaccount

from django-rest-auth.

mateusz-sikora avatar mateusz-sikora commented on August 17, 2024

Can you paste here a list of all installed applications in your project?

I think you have socialaccount added in you installed apps and you haven't called ./manage.py migrate yet. http://django-allauth.readthedocs.org/en/latest/installation.html#post-installation

Anyway, that's not an django-rest-auth issue.

from django-rest-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.