Skip to main content

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.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


Download files

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

Source Distribution

django-request-position-1.0a3.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

django_request_position-1.0a3-py2.py3-none-any.whl (6.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-request-position-1.0a3.tar.gz.

File metadata

File hashes

Hashes for django-request-position-1.0a3.tar.gz
Algorithm Hash digest
SHA256 234e9eee68975d8a271dca91429dbdfcf946b4b5c847b363a37295547eee9455
MD5 0b83dfa6564cce130cb579ed3d8c889e
BLAKE2b-256 516809e2999514612c55d97d06a71c56710529816ba5b7b5b24355720c724ca4

See more details on using hashes here.

File details

Details for the file django_request_position-1.0a3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_request_position-1.0a3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5fc41cc511a0ebad810f9f3d7f3396b82445f8d5e744d6e8e3afd749b3270c32
MD5 7743176d97b2e9c3637cb6db8419cebc
BLAKE2b-256 63168bdba170c29c46690dab3d75e56fa3a5d3c6c33701e152db89d16bf9c62f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page