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.7.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae715bdd34570dc7fe56343205a976d5f816f012eeba1c4ee3150f8de6c0d0fc |
|
MD5 | 1abf299aaaaa6b3088747769c563a6d1 |
|
BLAKE2b-256 | f26a8578fa53218c212b38005c4bca218ece6dd74de1470deb6a6161ad6951b1 |
Hashes for django_istat_italian_places-0.2.7.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a7edf18e3c30c26ac2e5496b7ec268d751e11ce558dd0db411eda0b86f593be |
|
MD5 | b0f25b0c16976cb17461c32eb95cf280 |
|
BLAKE2b-256 | f7e514ca323637559f3dc97217d8f9046624003e6adcc5f2b3a06f76db66411a |