Merge pull request #244 from Akay7/FixImportAllauthError

Fix import allauth error
This commit is contained in:
mario 2016-08-30 23:58:15 +02:00 committed by GitHub
commit f07429c252

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,