I'm looking for the most elegant way to lock a Django user account after several failed login attempts.
"What have I tried?":
I have looked unsuccessfully for similar questions on SO (If this question is a dup please, post a comment to delete this one).
At the moment I'm looking for other developers' experiences. I would prefer not to talk about what I've tried in order to not condition the answers.
As additional information, the app doesn't have UserProfile enabled (but, of course, I can enable it if it's worth it).