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
-
Add "geolocation" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [ ... 'geolocation', ]
-
Include the geolocation URLconf in your project urls.py like this::
path('geolocation/', include('geolocation.urls')),
-
Run
python manage.py migrate
to create the geolocation models. -
Start the development server and visit http://127.0.0.1:8000/
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.