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 migrateto 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.
Source Distribution
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d53a831b77df185def682631b7390bf83bab64edf5ee8ba96d2e6759070bc000
|
|
| MD5 |
5a6d051479d4294fb4d786eb82ec7f41
|
|
| BLAKE2b-256 |
0f2438fa6c937cb8c751737444fad5ddf603db1df960e7b89e8cbccb91a76ef0
|