Skip to content

Commit f07429c

Browse files
authored
Merge pull request #244 from Akay7/FixImportAllauthError
Fix import allauth error
2 parents e9215f4 + 2546b17 commit f07429c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rest_auth/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
from rest_framework.permissions import IsAuthenticated, AllowAny
1414
from rest_framework.generics import RetrieveUpdateAPIView
1515

16-
from allauth.account import app_settings as allauth_settings
16+
if 'allauth' in settings.INSTALLED_APPS:
17+
from allauth.account import app_settings as allauth_settings
1718

1819
from .app_settings import (
1920
TokenSerializer, UserDetailsSerializer, LoginSerializer,

0 commit comments

Comments
 (0)