User delete fails if allauth.socialaccount is not in INSTALLED_APPS
See original GitHub issueThis 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:
- Created 6 years ago
- Reactions:15
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m also running into the same issue.
After adding ‘allauth.socialaccount’ to my INSTALLED_APS and running migrations, the problem is gone.
I also found this confusing in 2020.