Simple Django app to group countries in world's regions like *Northern America*, *Eastern Europe*, etc.
Project description
Simple Django app to group countries in world’s regions like Northern America, Eastern Europe, etc.
Regions data are based in http://techydiary.com/region-yaml-for-django-fixtures/ thanks Stephen for that.
Django Countries is used to handle countries.
Installation
pip install django-world-regions
Add world_regions to INSTALLED_APPS
python manage.py migrate
Usage
from world_regions.models import Region
region = Region.objects.get(countries__country='US')
print region.name
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-world-regions-0.1.1.tar.gz.
File metadata
- Download URL: django-world-regions-0.1.1.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9db46281cf16f256ab50af26005865b38aedf73453e9c42d33fa930d5413fe15
|
|
| MD5 |
d5544e30af0378cb31763c8340b472f2
|
|
| BLAKE2b-256 |
10ae41021e90f42ca6128fd015192dae2826bac29ce1b09e1088c815ddb5d0b6
|