Skip to main content

A Django app to add ISTAT data resources Regions, Provinces and Cities from updated Official CSV file.

Project description

GitHub GitHub release (with filter) Ask DeepWiki GitHub Workflow Status (with event) GitHub issues https://github.com/FraCata00/django-istat-italian-places/actions?query=workflow%3ACodeQL

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.

Detailed documentation is in the “docs” directory.

Quick start

  1. Add “comuni_italiani” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...,
        "comuni_italiani",
    ]
  2. Include the polls URLconf in your project urls.py like this:

    path("comuni_italiani/", include("comuni_italiani.urls")),
  3. Run python manage.py migrate to create the comuni_italiani models.

  4. Start the development server

  5. 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)
  6. Visit http://127.0.0.1:8000/comuni-italiani/ to view the API index.

  7. Visit http://127.0.0.1:8000/comuni-italiani/regioni/ to view the API regioni.

  8. Visit http://127.0.0.1:8000/comuni-italiani/province/ to view the API province.

  9. Visit http://127.0.0.1:8000/comuni-italiani/comuni/ to view the API cities.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_istat_italian_places-0.3.2.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_istat_italian_places-0.3.2-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file django_istat_italian_places-0.3.2.tar.gz.

File metadata

File hashes

Hashes for django_istat_italian_places-0.3.2.tar.gz
Algorithm Hash digest
SHA256 fb222b2136ab9a100ef8ffc29e18fdbe5dde7f2b095acf1cbe790146d0716780
MD5 de30ee16e2e299f8eaf06ba8b8741b26
BLAKE2b-256 fb3d6929789c67a1e4194aa98d21d760bdf99b6b6d1a89c3e83f4f63f53ad2ea

See more details on using hashes here.

File details

Details for the file django_istat_italian_places-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_istat_italian_places-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a4e419d4aa177f0cf18ae03e0822052f2187556e350fdff05abaae5fc41ecf6f
MD5 500fc3413c5ac04f4460bebc38672c74
BLAKE2b-256 20c10738540473fac127d78b557401a683d8ceec485dc67e0d41948b504429cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page