https://github.com/chanmo/django-regions
中国省市区数据模型
https://github.com/chanmo/django-regions
Last synced: 11 months ago
JSON representation
中国省市区数据模型
- Host: GitHub
- URL: https://github.com/chanmo/django-regions
- Owner: ChanMo
- License: mit
- Created: 2020-08-04T02:02:38.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-04T02:04:07.000Z (almost 6 years ago)
- Last Synced: 2025-07-09T03:39:17.316Z (12 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```