Django app to add a "position" field to the request, using GeoIP or GPS data given in the request headers
Project description
Django app to add a “position” field to the request, using GeoIP or GPS data given in the request headers. Some references about this:
Quick start
1 Install using pip:
pip install django-belt
2 Add “request_position” to your INSTALLED_APPS settings like this:
INSTALLED_APPS += ('request_position',)
3 Add the middleware:
MIDDLEWARE += ( 'request_position.middleware.RequestPositionMiddleware', )
History
1.0a4 (2017-2-28)
Fixed problem with missing REMOTE_ADDR_ATTR setting variable.
1.0a3 (2017-2-28)
Fixed problem with missing header.
1.0a2 (2017-2-28)
Fixed Django 1.10 compatibility with new middleware.
1.0a1 (2017-2-21)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-request-position-1.0a4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8a1d43b8863a3cdca9b34997c8474e690730515a16d2e27f7886dc7647fd109 |
|
MD5 | 572a08454cf16c46111d6eebf8e10f75 |
|
BLAKE2b-256 | 1d6b5761d1a77d801f8b8118a10e21a7b9d65f2f65e5fbaff77834639cccd667 |
Close
Hashes for django_request_position-1.0a4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d20814b733f853c7a55659b2a6ac691d7fdfbc6baa39a75e2545609c586bc2c1 |
|
MD5 | b6fab169b7d71c8e6292ffee3abf46b4 |
|
BLAKE2b-256 | f20aad2d9a06772f2ae9b8502280bfe996b17712eb64e16ecac3c2d1782cddf8 |