# Django 1.9 MIDDLEWARE_CLASSES = [ ... 'ip_restriction.IpWhitelister', ... ] # Django 1.10+ MIDDLEWARE = [ ... 'ip_restriction.IpWhitelister', ... ]
$ pip install django-ip-restriction