django-adminrestrict icon indicating copy to clipboard operation
django-adminrestrict copied to clipboard

Block access to Django admin pages except for allowed IP addresses

Results 4 django-adminrestrict issues
Sort by recently updated
recently updated
newest added

Middleware Changes: - Import render - Create self.denied_template = getattr(settings, 'ADMINRESTRICT_TEMPLATE', '') - Add condition statement under GET to check if denied_template is configured - Change condition statement under POST...

Hi, Nice project, thanks for releasing this. I've been troubleshooting an issue and I think I've found some potential improvements. I was trying to use this in a docker container,...

If you run `manage.py addadminip x.x.x.x` more than once for the same IP you get locked out from the /admin area.

since python 3.12 this warning will pop up ``` .venv/lib/python3.12/site-packages/adminrestrict/middleware.py:161: SyntaxWarning: invalid escape sequence '\/' for cidr_range in AllowedIP.objects.filter(ip_address__regex="\/\d+$") ``` this is because backslash escapes are not valid in string...