1👍
✅
There is the django.contrib.auth.signals.user_logged_in
signal. If you only want to call the function for admin logins check the request against your admin urlconf.
Source:stackexchange.com