Django login with django-axes

I created a site with django. Users should be able to login. The login-view looks like this: from django.contrib.auth import authenticate, login from django.contrib.auth.models import User .... if...

django-axes with custom user model

I’ve been struggling to include django-axes into a project where I’m using a custom User model. Finally, I got this almost working. I say “almost” because none errors are shown, but unfortunately...

How to use django-tastypie with django-axes

Settings: django==1.8 django-tastypie==0.13 django-axes==2.3 I've got login resource through tastypie what looks like below from django.contrib.auth import login class LoginResource(Resource): ...

IP address for django-axes logins does not show

I have django-axes running with my Django app and so far everything works fine, however, in the django-axes admin section, the IP addresses do not seem to work. It just shows a "-". Is there...

django-axes modelbackend requires 'request' to authenticate

In my application i have a custom user model using django-custom-user also i'm using allauth. Django-axes registers every login attempt on admin and allauth, but i have problems with the user...

Django-axes not working with custom login view

I have followed the below links before asking this question as it seems like a duplicate, but of no use. So I'm asking...

django-axes lockout not working

Has anyone here successfully configured django-axes? Axes is a module which provides you with the ability to lock out a user after a specified number of unsuccessful login attempts. I'm having...

What is different between "DRF Throttling" and "Django Axes"

The "Django-Rest-Framework (DRF) Throttling" can help to prevent bruteforce attacks and failed login attempts. Then why do we need to use "Django axes", "Django defender", "django-ratelimit" or...

Django-Axes causing DatabaseError - Transaction Block

So I've updated django to 1.4.5 and postgres to 9.2.3 and psycopg2 to 2.4.6 . I runserver and everything looks ok, but when i go to localhost:8000 i see the infamous 'current transaction...

How do you test django-axes with a Django unit test?

I'm using Django Axes with my Django project to ensure that if someone is trying to guess a password, their IP gets blocked for a while. It's setup, and works great. I want to write a Django test...

Error in adding django-axes to project

I have installed django axes with this command in cmd : pip install django-axes Then i addes to my setting.py file this parts : INSTALLED_APPS = [ 'django.contrib.admin', ...

django-axes failed login attempts are not consecutive

django-axes 4.1.0. I set the following configurations for django-axes which are working fine to soe limit: AXES_LOCK_OUT_AT_FAILURE = config('AXES_LOCK_OUT_AT_FAILURE', default=True,...

django-axes installed, but axes.middleware module not available

I recently refactored a lot of code and wanted a clean environment, so I deleted and recreated the database schema, created a new venv, and installed dependencies from pip3 one-by-one so I didn't...

django-axes not capturing failed login attempt on RPC

I use django-axes to capture the failed login but I thing this library uses the internal DB of django and my case the authentication is a RPC call. The code is: urls.py url(r'^$',...

All access attempts share the same IP Address Django-Axes

I'm having an issue where all access logs/attempts recorded to the server via the Django-axes module are under the same IP address. These two logs seen below were made under two different IP...

Integrating django-axes with customized django rest framework and simpleJWT

I am a beginner at Django and was building a login system. I wanted to use axes with django rest framework and simpleJWT. According to the documentation for Django-Axes: > Modern versions of...

Django-axes is not capturing failed login attempts except in admin site

Django-axes isn't working for me in my own views. I can login as many times as I want. Axes still work only with the admin site and I can get user locked. What's the problem? urls.py: from...

How can I implement incremental wait time for django axes?

I'm looking to implement django axes for brute force protection for my application. I want to implement something like this "lockout for 5 minutes after 5 failed attempts, lockout for 10 minutes...

Is there a way to programmatically find which account has been locked out in django-axes?

I would like to check which accounts have been locked out in django-axes. I know this can be done in admin site, but can I get this in a view.py as well?

django-axes not capturing failed login attempt, but captures admin failed attempts fine

I am using Django-axes, and using the exact same steps described in readme on github. I am able to login and logout fine through django views, but none of the failed login attempts get captured if...

How to ban client ip adress with django-axes instead of the local ip address of the angular server from which the login request is transmitted?

I use django-rest-framework as a back-end and Angular 7 as a front-end. I wanted to secure my login page by limiting the login attempts and I did so with django-axes. The problem is that the login...

ModuleNotFoundError: No module named 'axes'

I installed django-axes using pip command $ pip install django-axes Then I've added axes to my Installed Apps as shown below INSTALLED_APPS = [ 'django.contrib.admin', ...

django-axes is not getting the request argument

I recently added django-axes to my Django project. It is suppose to work out the box with django-restframework. However, I am using django-rest-framework-simplejwt to handle authentication. But it...

Increasing cooloff time for djano-axes AXES_COOLOFF_TIME

The django-axes docs state you can use a callable as the input for AXES_COOLOFF_TIME. I'm wondering if it's possible to have the cooloff time increase each time a user enters an incorrect password...

How to perform additional actions on PasswordReset in Django

I'm using django-axes for the locking of account when a user tries to enter credentials that are not recognized by the system, it will lock the account. But when I do perform the password reset...

Django Axes doesn't get failed login attemps in django Oscar

I'm working in a e-shop using django-oscar and i'm using django-axes for login attemps capture. All is work fine when i get the django admin login: if i failed three times, axes lock out me. But...

Django auth views causing Http502 (with Gunicorn + Nginx)

I'm getting 502s when I try to access any of the views that rely on auth (so /admin/login/, posting to my own /login/ page, etc). It's not occurring on any other views/requests. Here's the nginx...

django-allauth, recommendations for limiting failed login attempts

I'm using django-axes to limit login attempts to the admin backend. However, for my frontend client login via django-allauth I can't find any mechanism to detect and prevent failed logins. What...

nginx is giving django-axes (access logging middleware) a null ip address

I'm having trouble accessing the login page of my site. It has django-axes access logging middleware watching it: from axes.decorators import watch_login @method_decorator(watch_login,...

Scientific notation on axes in plot from django-nvd3

I have tried for hours now to find any documentation on this, but it doesn't appear to exist. After battling for days to get any of the methods for creating and showing plots in Django to work, I...