From e530ca71ee7d26d7dddd632fd159ea69576399b9 Mon Sep 17 00:00:00 2001 From: Patrick Steadman Date: Tue, 7 Jul 2020 22:32:37 -0400 Subject: [PATCH 1/2] Update install docs to prevent error on user deletion If using `django-allauth`, the `allauth.socialaccount` app is *required*, or else errors will occur when deleting users (and possibly in other places). The `allauth.socialaccount` app cannot be left out even if you're just doing email registration and not using the social auth providers. See: https://github.com/pennersr/django-allauth/issues/1975#issuecomment-384075169 Another user of this library also got tripped up here: https://github.com/jazzband/dj-rest-auth/issues/18#issue-590399626 --- docs/installation.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/installation.rst b/docs/installation.rst index 95de78f..effb2bb 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -46,7 +46,7 @@ Registration (optional) 1. If you want to enable standard registration process you will need to install ``django-allauth`` by using ``pip install 'dj-rest-auth[with_social]'``. -2. Add ``django.contrib.sites``, ``allauth``, ``allauth.account`` and ``dj_rest_auth.registration`` apps to INSTALLED_APPS in your django settings.py: +2. Add ``django.contrib.sites``, ``allauth``, ``allauth.account``, ``authauth.socialaccount`` and ``dj_rest_auth.registration`` apps to INSTALLED_APPS in your django settings.py: 3. Add ``SITE_ID = 1`` to your django settings.py @@ -57,6 +57,7 @@ Registration (optional) 'django.contrib.sites', 'allauth', 'allauth.account', + 'allauth.socialaccount', 'dj_rest_auth.registration', ) From 19a188df621ede4ca27022b6838b75b20b763efd Mon Sep 17 00:00:00 2001 From: Patrick Steadman Date: Tue, 7 Jul 2020 22:35:01 -0400 Subject: [PATCH 2/2] fix typo --- docs/installation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation.rst b/docs/installation.rst index effb2bb..3b69fbf 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -46,7 +46,7 @@ Registration (optional) 1. If you want to enable standard registration process you will need to install ``django-allauth`` by using ``pip install 'dj-rest-auth[with_social]'``. -2. Add ``django.contrib.sites``, ``allauth``, ``allauth.account``, ``authauth.socialaccount`` and ``dj_rest_auth.registration`` apps to INSTALLED_APPS in your django settings.py: +2. Add ``django.contrib.sites``, ``allauth``, ``allauth.account``, ``allauth.socialaccount`` and ``dj_rest_auth.registration`` apps to INSTALLED_APPS in your django settings.py: 3. Add ``SITE_ID = 1`` to your django settings.py