A Django app to add ISTAT data resources Regions, Provinces and Cities from updated Official CSV file.
Project description
Django ISTAT API italian places
Django ISTAT is a Django app to localize the ISTAT API. The result is a Django app that you can plug into your existing Django project to localize the ISTAT API.
The resources are: Region, Provinces and Cities.
The data are taken from the ISTAT API (https://www.istat.it/it/archivio/6789)
Detailed documentation is in the “docs” directory.
Quick start
Add “comuni_italiani” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ..., "comuni_italiani", ]
Include the polls URLconf in your project urls.py like this:
path("comuni_italiani/", include("comuni_italiani.urls")),
Run python manage.py migrate to create the comuni_italiani models.
Start the development server
Run the management command to populate the database with the ISTAT API data:
``python manage.py import_istat_data`` (If use the --force option, the command start without asking for confirmation)
Visit http://127.0.0.1:8000/comuni-italiani/ to view the API index.
Visit http://127.0.0.1:8000/comuni-italiani/regioni/ to view the API regioni.
Visit http://127.0.0.1:8000/comuni-italiani/province/ to view the API province.
Visit http://127.0.0.1:8000/comuni-italiani/comuni/ to view the API cities.
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
Hashes for django_istat_italian_places-0.2.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45a2ac1fed6ca932c77496853baa42697ff964a98394b0cad2923b5649f3fb86 |
|
MD5 | d43a47f00daec32d4837b6115a89f659 |
|
BLAKE2b-256 | 42ef1dd12af350bb8451c9a7f8b1f15695889cec86a80dfd788cf49a747e8646 |
Hashes for django_istat_italian_places-0.2.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b965867fe8c6d3993eb50f56cbd52c1552f74ed43990d36a1a58bcb1f8e8a295 |
|
MD5 | 25f19f250d442e378aa7adade6f78733 |
|
BLAKE2b-256 | c2cdfc8efeb260128f19ba360adf8410ee69b46f5c7852834c9f6c8b8eb446f1 |