This is a application for Django projects providing list of world countries based on ISO3166.
Project description
Django ISO3166
ISO 3166 is a three-part standard published by the Organization for Standardization (ISO), and defines codes for the names of countries, dependent territories, and special areas of geographical interest, and their principal subdivisions (e.g., provinces or states). The official name is Codes for the representation of names of countries and their subdivisions.
This project only uses one part of the standard, ISO 3166-1, It defines three sets of country codes:
alpha-2 : two-letter country codes which are the most widely used of the three.
alpha-3 : three-letter country codes.
numeric : three-digit country codes which are identical to those developed and maintained by the United Nations Statistics Division, with the advantage of script (writing system) independence, and hence useful for people or systems using non-Latin scripts.
Basic configuration and use
Once installed, you can add django-iso3166 to any Django-based project you’re developing. The only thing needed is to add iso3166 to your INSTALLED_APPS setting.
Automatic Update
- This application comes with automatic update feature, this will only update the
- models in this application. Use the management command:
python manage.py updateISO3166
You can adjust the default urls provided, by specify the ISO3166_SOURCES setting appropriately. It should point to a fixture containing only fixtures for iso3166, it will consume xml or json format dumps.
Default ISO3166_SOURCES setting:
urls = ( "http://files.co-capacity.biz/iso3166/latest.json.bz2", "http://files.co-capacity.biz/iso3166/latest.xml.bz2", "http://files.co-capacity.biz/iso3166/latest.json.gz", "http://files.co-capacity.biz/iso3166/latest.xml.gz", "http://files.co-capacity.biz/iso3166/latest.json", "http://files.co-capacity.biz/iso3166/latest.xml", )
django-iso3166 changelog
version 10.1.1, 26 Jan 2010
added locale files
fixed rst markup bugs
changed download url to pypi
Version 10.1, 26 Jan 2010
Packaged from revision 105 in Subversion; download at http://files.co-capacity.biz/iso3166/releases/django-iso3166-10.1.tar.gz
First packaged version using distutils.
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 Distributions
File details
Details for the file django-iso3166-10.1.1.zip
.
File metadata
- Download URL: django-iso3166-10.1.1.zip
- Upload date:
- Size: 28.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eaae71fe3d67c1da159171c9f3c8e310a845426510587c935bbd715ee407154 |
|
MD5 | bc43ff583b583e035a7b520360b20a24 |
|
BLAKE2b-256 | 878a59565b2ef48e03e5f551699f80663cbef4574f339a090d83cc31109ebb35 |
File details
Details for the file django-iso3166-10.1.1.tar.gz
.
File metadata
- Download URL: django-iso3166-10.1.1.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b08fd29c3b206548701e58f4a37d7464308e3bf91bb8c234e7ab4c0a76452c87 |
|
MD5 | 566cdca35f80401404ccd7edcb39b490 |
|
BLAKE2b-256 | b3dca22775bd1a2bc25afa4317ca6a2f29503f136a79edbffa70552058209c2b |
File details
Details for the file django-iso3166-10.1.1.tar.bz2
.
File metadata
- Download URL: django-iso3166-10.1.1.tar.bz2
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ade6fd7515ce64177f9124a2bf428f242bce9665a0a0a8051832b63389b83d4 |
|
MD5 | cf41bbce5b4786f36474c4909ce0dd88 |
|
BLAKE2b-256 | ad89eadbcfbf7f36c54d3f3ca2af9cf6de2670e42c492d72783236ddacf3fc3c |