Django Geolocation Alert is an middleware that control user IP address
and agent browser during session time. If someone will take session id
and try to use it from another IP or different agent browser Alert will raise
so user will be logged out with alert messages.
You can also turn on send signal to make some custom staff by handling it.
Lot of User class that can be authenticated? Don’t worry take a look below.

The app integrates smoothly with any Django project.
All You need to do is install app and add middleware to MIDDLEWARE_CLASSES
in settings. Please read Quick start to know hot to do that.

Features

Set geolocation user hash to request.session when user_logged_in signal is send

Define User model(s) class that geolocation alert should raise

Send geolocation alert as signal if User IP or agent browser will change and logout

Override settings if needed

Future Features

Confirm it works on django 1.7

PY2 & PY3 compabilities

Django downgrade compabilities 1.6, 1.5, 1.4

unit tests

Requirements

Django == 1.8

Python == 2.7

License

MIT

Quick Start

Install django-geolocation-alert in your system by command:

pip install django-geolocation-alert

Then use it in a django project by putting middleware to Your settings: