Skip to main content

No project description provided

Project description

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

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_thailand_geography-0.1.4.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

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