Skip to content

Django models for Thailand geography structure (plus JSON data importer)

License

Notifications You must be signed in to change notification settings

earthpyy/django-thailand-geography

Repository files navigation

django-thailand-geography

GitHub GitHub Workflow Status codecov PyPI
PyPI - Python Version

Django models for Thailand geography information. This library also includes a command to import geography data from thailand-geography-data/thailand-geography-json

Installation

pip install django-thailand-geography

Setup

  1. Add thailand_geography into INSTALLED_APPS

    # settings.py
    
    INSTALLED_APPS = [
        ...
        'thailand_geography',
    ]
  2. Run migration

    python manage.py migrate
  3. Import data from JSON database

    python manage.py import_geo

Development

Requirements

  • Docker
  • Python
  • Poetry

Migrate

make migrate

Linting

make lint

Testing

make test

Fix Formatting

make yapf

About

Django models for Thailand geography structure (plus JSON data importer)

Resources

License

Stars

Watchers

Forks

Packages

No packages published