Skip to main content

A Django app to geolocalize an IP address

Project description

===== geolocation

geolocation is a Django app which takes the IP address of the client and, exploiting an external API (via get requests), gives information about the client's location based on the IP address. After this, the address is stored in a postgre database which is used to count how many times the client has connected to the web app. The index page shows the geolocation data of the client.

Quick start

  1. Add "geolocation" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [ ... 'geolocation', ]

  2. Include the geolocation URLconf in your project urls.py like this::

    path('geolocation/', include('geolocation.urls')),

  3. Run python manage.py migrate to create the geolocation models.

  4. Start the development server and visit http://127.0.0.1:8000/

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

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

Source Distribution

django-geolocation-0.2.tar.gz (6.6 kB view details)

Uploaded Source

File details

Details for the file django-geolocation-0.2.tar.gz.

File metadata

  • Download URL: django-geolocation-0.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for django-geolocation-0.2.tar.gz
Algorithm Hash digest
SHA256 d53a831b77df185def682631b7390bf83bab64edf5ee8ba96d2e6759070bc000
MD5 5a6d051479d4294fb4d786eb82ec7f41
BLAKE2b-256 0f2438fa6c937cb8c751737444fad5ddf603db1df960e7b89e8cbccb91a76ef0

See more details on using hashes here.

Supported by

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