mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 17:16:34 +03:00
Merge pull request #107 from nickspacek/fixes-optional-socialaccount
Adds check for optional deps in INSTALLED_APPS
This commit is contained in:
commit
74fa6cdf38
|
@ -4,7 +4,10 @@ from requests.exceptions import HTTPError
|
|||
# Import is needed only if we are using social login, in which
|
||||
# case the allauth.socialaccount will be declared
|
||||
try:
|
||||
apps.get_app_config('allauth.socialaccount')
|
||||
from allauth.socialaccount.helpers import complete_social_login
|
||||
except LookupError:
|
||||
pass
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user