From 2546b170674f6cf63423093988c3c1d4555c3dfd Mon Sep 17 00:00:00 2001 From: Poderyagin Egor Date: Fri, 12 Aug 2016 10:46:25 +0300 Subject: [PATCH] fix import allauth error --- rest_auth/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rest_auth/views.py b/rest_auth/views.py index 0761600..2f3b7d0 100644 --- a/rest_auth/views.py +++ b/rest_auth/views.py @@ -13,7 +13,8 @@ from rest_framework.generics import GenericAPIView from rest_framework.permissions import IsAuthenticated, AllowAny from rest_framework.generics import RetrieveUpdateAPIView -from allauth.account import app_settings as allauth_settings +if 'allauth' in settings.INSTALLED_APPS: + from allauth.account import app_settings as allauth_settings from .app_settings import ( TokenSerializer, UserDetailsSerializer, LoginSerializer,