question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

User delete fails if allauth.socialaccount is not in INSTALLED_APPS

See original GitHub issue

This looks like a re-occurrence of #71 I have a users Viewset which has a delete method (Nothing fancy, just added rest_framework.mixins.DestroyModelMixin) When I try to delete, the server responds with this error:

no such table: allauth_socialaccount

Request Method: DELETE
Request URL: http://localhost:8000/users/8/
Django Version: 1.11.7
Python Version: 2.7.14
Server time: Tue, 20 Feb 2018 06:31:44 +0000
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'rest_framework',
 'rest_auth',
 'django.contrib.sites',
 'allauth',
 'allauth.account',
 'rest_auth.registration',
 'api',
 'rest_framework_swagger',
 'corsheaders',
 'dynamic_rest']

However, if I add allauth.socialaccount and remake and apply migrations, everything works fine

It looks like the fix in #107 is no longer present. Moreover, applying it to today’s code doesn’t seem to solve the problem.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:15
  • Comments:6

github_iconTop GitHub Comments

14reactions
RikSchoonbeekcommented, Jun 14, 2018

I’m also running into the same issue.

After adding ‘allauth.socialaccount’ to my INSTALLED_APS and running migrations, the problem is gone.

10reactions
florianmartenscommented, Sep 11, 2020

I also found this confusing in 2020.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I delete user made by django rest_auth in admin page
But when I try to delete it, the following error occurs. ... I got results to put 'allauth.socialaccount' in INSTALLED_APPS, but this didn't ......
Read more >
Installation — django-allauth 0.43.0 documentation
Needed to login by username in Django admin, regardless of `allauth` ... include the providers you want to enable: 'allauth.socialaccount.providers.agave', ...
Read more >
django-allauth 0.10.1 - PyPI
Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.
Read more >
No module named 'allauth.socialaccount.providers.keycloak'
AttributeError: module 'allauth.socialaccount.providers' has no attribute 'keycloak'. During handling of the above exception, ...
Read more >
Social authentication with Django allauth - Web Forefront
Listing 10-20 Social provider app installation for Django allauth in settings.py ... with the Django admin not working for this type of user...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found