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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 648c2f96cf2d2c2303c0f2a9e31ca39d017d8e05311ae3527b8c8e01c36327ba |
|
MD5 | b3a79dd403bb84cf27ced5535e07cb60 |
|
BLAKE2b-256 | 4d220683be8a12ae43c3eaf1d0d893cfcc14ff9813b6c18efb53c532fc9996e6 |
Hashes for django_istat_italian_places-0.2.7.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 459f33bff43895288e33baa116e9003a1043a6b99f92404e91a6e61a802952f6 |
|
MD5 | 12db9b0bcf9d1da95f093ce1d793fc68 |
|
BLAKE2b-256 | 61987625313680a0c01bb619c04e4a69e9a3af7c314d4387828522dc1ccd8237 |