Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

IP Authentication for Django

Project Description


IP based authentication for Django. IP ranges are specified and tied to a user account.


  • Install the django_ipauth package into your path either using buildout, easy_install or pip.
  • Make the following changes to your * Add ‘ipauth.backend.RangeBackend’ to your AUTHENTICATION_BACKENDS * Add ipauth to your INSTALLED_APPS * If it isn’t already, add django.contrib.auth to your INSTALLED_APPS
  • Change your login url to use the ipauth.views.login view.
  • Run syncdb


If you are using the contrib.admin package from Django, you should have a new section in your admin site called Ipauth where you can add Ranges.

0.4.1 (2012/12/03)

  • Added logging to backend and login view

0.4 (2012/11/27)

  • Fixed validation bugs in Range
  • Made range collision validation errors more verbose

0.3 (2012/10/22)

  • Fixed a validation bug for IPAddressFormField

0.2 (2011/06/23)

  • Made the upper end of the range optional
  • Fixed a bug in the Range model clean method if upper is null

0.1 (2011/06/17)

  • IPAddressFormField for inputting IP Addresses
  • IPAddressModelField for storing IP addresses as integers (so math works)
  • Range Model for storing IP Ranges tied to a user account
  • Range Authentication backend
  • A login view wrapper that attempts to login via IP first
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_ipauth-0.4.1-py2.6.egg (12.7 kB) Copy SHA256 Checksum SHA256 2.6 Egg Dec 3, 2012
django_ipauth-0.4.1-py2.7.egg (12.7 kB) Copy SHA256 Checksum SHA256 2.7 Egg Dec 3, 2012
django-ipauth-0.4.1.tar.gz (5.1 kB) Copy SHA256 Checksum SHA256 Source Dec 3, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting