SmileyChris/django-countries
SmileyChris/django-countries has 1,527 GitHub stars and 300 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 04:23 UTC. Last push 2026-10-29.
A Django application that provides country choices for use with forms, flag icons static files, and a country field for models.
What you can do
- Country Field: Django model field with all ISO 3166-1 countries
- Translated Names: Country names translated using Django's i18n system
- Flag Icons: Static flag image files for all countries
- REST Framework: Full Django REST Framework integration
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalDjango Countries
A Django application that provides country choices for use with forms, flag icons static files, and a country field for models.
Documentation
Quick Start
Install:
pip install django-countries
Add to INSTALLED_APPS:
INSTALLED_APPS = [
# ...
'django_countries',
]
Use in your models:
from django_countries.fields import CountryField
class Person(models.Model):
country = CountryField()
Features
- Country Field: Django model field with all ISO 3166-1 countries
- Translated Names: Country names translated using Django's i18n system
- Flag Icons: Static flag image files for all countries
- REST Framework: Full Django REST Framework integration
- GraphQL: Support for graphene-django
- Multiple Selection: Support for multiple country selection
Support
- Python: 3.10, 3.11, 3.12, 3.13, 3.14
- Django: 4.2 (LTS), 5.2 (LTS), 6.0, 6.1
- Django REST Framework: 3.14+
Contributing
Contributions are welcome! See the Contributing Guide for details.
Translations
Country names are translated using Django's standard gettext and imported from our Transifex project.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,927 starspublic-apis/public-apis
A collective list of free APIs
497,176 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
442,406 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,177 stars