django - The adapter is not used -


i'm using allauth 0.19.1. when tried use custom adapter, nothing happens. config:

account_adapter = 'account.adapters.customaccountadapter' account_user_model_username_field = 'email' account_user_model_email_field = 'email' account_authentication_method = 'email' account_email_required = true account_unique_email = true account_username_required = false account_signup_form_class = 'account.forms.signupform' 

my adapter:

class customaccountadapter(defaultaccountadapter):      def get_login_redirect_url(self, request):         import pdb         pdb.set_trace()         path = "/accounts/{username}/"         return path.format(username=request.user.username) 

also, tried use signals result same

@receiver(user_logged_in) def registered_user_login(sender, **kwargs):     import pdb     pdb.set_trace()     instance = user.objects.get_by_natural_key(kwargs['user']) 


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -