How to execute code after authentication in Django? -


i want execute 1 or more functions after user logs site. how possible? looked middleware. djangobook says i'll need run piece of code on each , every request django handles. however, need code run when authentication happens successfully.

note: using django allauth authentication , don't have view of own log in users.

as per official documentation, there signal allauth.account.signals.user_logged_in gets triggered when user logs in. can serve purpose.


Comments