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.
Metadata
Release files for django-istat-italian-places 0.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_istat_italian_places-0.3.5.tar.gz | 16.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_istat_italian_places-0.3.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 43.1 kB
Release files / django_istat_italian_places-0.3.5.tar.gz
| Download URL | django_istat_italian_places-0.3.5.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c7699bfb2e9534812c57253a8ed0216dd92f543c3b65af422b81c6f31e0101a
|
|
BLAKE2b-256 checksum How to use checksums |
caf53250c71e4cef0b39d0bf4c22d33b176f0a20bd9e3b08ce908ba737da84bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / django_istat_italian_places-0.3.5-py3-none-any.whl
| Download URL | django_istat_italian_places-0.3.5-py3-none-any.whl |
|---|---|
| Size | 26.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6573084c3fbadd664aa4bfaa74fc075ddeb225ac002fa5df5a6c58f8bd930ec8
|
|
BLAKE2b-256 checksum How to use checksums |
25c4a7556d7006dce79c63ec3e04fb992f62d7ebf2fc5099ff2934eb47b26bd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|