Skip to main content

中国省市区数据模型.

Project description

Django Regions

基于django的中国省市区数据模块

数据由高德地图接口获取

Quick Start

Install

$ pip install django-regions

Update settings.py

INSTALLED_APPS = [
    ...,
    'regions',
]

...
AMAP_KEY = ''

Migrations

$ python manage.py makemigrations regions
$ python manage.py migrate

Sync Data

$ python manage.py sync_regions

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-regions-0.0.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

django_regions-0.0.1-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

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