Skip to main content

A Django app to migrate Vietnam address.

Project description

Provinces of Vietnam using Django and Django Rest Framework

This is a Django project about provinces/cities, districts, wards of Vietnam. The project provides a model to store data about provinces/cities, districts and wards of Vietnam.

Quick start

  1. Add "rest_framework", "vi_address" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [

     ...
     'rest_framework',
     'vi_address',
     ...
    

    ]

  2. Include the "vi_address" URLconf in your project urls.py like this::

    path('api/addresss/', include('vi_address.urls')),

  3. Run "python manage.py migrate" to create the vi_address models.

  4. Run "python manage.py insert_data --datatype=city" to insert data cities.

  5. Run "python manage.py insert_data --datatype=district" to insert data districts.

  6. Run "python manage.py insert_data --datatype=ward" to insert data wards.

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-vi-address-0.1.4.tar.gz (397.8 kB view details)

Uploaded Source

Built Distribution

django_vi_address-0.1.4-py3-none-any.whl (664.1 kB view details)

Uploaded Python 3

File details

Details for the file django-vi-address-0.1.4.tar.gz.

File metadata

  • Download URL: django-vi-address-0.1.4.tar.gz
  • Upload date:
  • Size: 397.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.2

File hashes

Hashes for django-vi-address-0.1.4.tar.gz
Algorithm Hash digest
SHA256 400400c30eeb2990d07bc6a2d84e9eb6419e0ad519858c3b4f8d26b26573289d
MD5 cd43007be725548f3722d273245180fd
BLAKE2b-256 8d150821f5031716c67a2a7c43f9f3c5863c2d9aebd8ebed4ce6b42a1a8bbb76

See more details on using hashes here.

File details

Details for the file django_vi_address-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: django_vi_address-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 664.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.2

File hashes

Hashes for django_vi_address-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3ae9f1fc2320d87ba9969aa0561525014213f6a022cbde38f623043e836d2c82
MD5 3951c641b13971c5fbac5bd6a0481260
BLAKE2b-256 4e439439c6094beba4c4c918c485fd71fe1b9ebd7b25074c309ee2d62a0a71d2

See more details on using hashes here.

Supported by

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