fix import allauth error

This commit is contained in:
Poderyagin Egor 2016-08-12 10:46:25 +03:00
parent 5086eebfdb
commit 2546b17067

View File

@ -13,7 +13,8 @@ from rest_framework.generics import GenericAPIView
from rest_framework.permissions import IsAuthenticated, AllowAny from rest_framework.permissions import IsAuthenticated, AllowAny
from rest_framework.generics import RetrieveUpdateAPIView 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 ( from .app_settings import (
TokenSerializer, UserDetailsSerializer, LoginSerializer, TokenSerializer, UserDetailsSerializer, LoginSerializer,