Admin interface brute force protection
https://stackoverflow.com/a/45328687/2484972
https://django-allauth.readthedocs.io/en/latest/advanced.html#admin
(Please prefer the code from the former, because it addresses an additional concern.)
Edited by Tatsuyuki Ishi