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
File details
Details for the file django_istat_italian_places-0.2.9.tar.gz
.
File metadata
- Download URL: django_istat_italian_places-0.2.9.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 455777d51056b33eea76cd2e7d01fc417956688e528b3f6dd786812f005a8a6f |
|
MD5 | 555467d01b73c43c6452d5fa795ecb38 |
|
BLAKE2b-256 | 38dc3797a1552ad5ff40e6c66fb5d30044eebceb91bd6919911583d3c8add9d3 |
File details
Details for the file django_istat_italian_places-0.2.9-py3-none-any.whl
.
File metadata
- Download URL: django_istat_italian_places-0.2.9-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a017c8649813cfb1f87ecf7fb342eb4e78a447ce0588e838f2052d4619443936 |
|
MD5 | 7ccbbab9ca72dbdd785f7021051d4c49 |
|
BLAKE2b-256 | 1eef4eb191433fe370043e64fe0540cf5c409fe91c241aef3d3c09040e6ed56e |