<s> from django . conf import settings <EOL> from allauth . account . adapter import DefaultAccountAdapter <EOL> from allauth . socialaccount . adapter import DefaultSocialAccountAdapter <EOL> class AccountAdapter ( DefaultAccountAdapter ) : <EOL> def is_open_for_signup ( self , request ) : <EOL> return getattr ( settings , '<STR_LIT>' , True ) <EOL> class SocialAccountAdapter ( DefaultSocialAccountAdapter ) : <EOL> def is_open_for_signup ( self , request , sociallogin ) : <EOL> return getattr ( settings , '<STR_LIT>' , True ) </s>
