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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3de3f98ebe81e6e11982f3a46883f7d5df513c56022dddc9ffc76f964d16c704 |
|
MD5 | faf7e90b14f42f0fe838750915609422 |
|
BLAKE2b-256 | 8caf2393c8bef08f3cf7858966b8fa84f0441b3e11b3deccfc982ff65ed8fff9 |
Hashes for django_istat_italian_places-0.2.7.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd0a23a2cd91cc24cc425ff66b01a534f71911449970379a2d0f97fed992bd92 |
|
MD5 | 8031d0ae9e596bbf14173389b24e54d7 |
|
BLAKE2b-256 | 21b6aafa3af921a806523232d6a9a060e0e7d616b2a732c8cd99c994e9c8a797 |