Installation¶
Basic Installation¶
Install django-countries using pip:
Optional: Better Unicode Sorting¶
For more accurate sorting of translated country names, install with the optional pyuca package:
This improves sorting for non-ASCII country names by using the Unicode Collation Algorithm.
Django Configuration¶
Add django_countries to your INSTALLED_APPS:
Verify Installation¶
You can verify the installation by running:
Next Steps¶
- Quick Start Guide - Get up and running quickly
- CountryField Usage - Learn about the country field
- Settings - Configure django-countries for your needs