Skip to main content

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

Metadata

Release files for django-regions 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-regions 0.0.1
File Size Uploaded Provenance Actions
django-regions-0.0.1.tar.gz 4.2 kB Without provenance Details for django-regions-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-regions 0.0.1
File Interpreter ABI Platform Actions
django_regions-0.0.1-py3-none-any.whl Python 3 none any Details for django_regions-0.0.1-py3-none-any.whl

Total release size: 9.4 kB

Release files / django-regions-0.0.1.tar.gz

Download URL django-regions-0.0.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e537dd01dccdf3fb8eca5827e5b1d1ed76884e7d0199fc8aa464a76130b6f817
BLAKE2b-256 checksum
How to use checksums
2394bcad9e0dc3eecae04561a39bfa28622c47712e23fb4de4cdae426955f6a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.5

Release files / django_regions-0.0.1-py3-none-any.whl

Download URL django_regions-0.0.1-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3fa9596c5bf28c07a34b6b96a27d5e28c75ae8a8b5f3271cc6a4cb2968b60f8
BLAKE2b-256 checksum
How to use checksums
16744abd1ecbb191865566caf2f6026ea0839d7a2844fc86f9ec2af91f9ed708
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.5

Security for django-regions 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page