Setup¶
Dependencies¶
django-countries-flavor
supports Django 1.9+ on Python 3.4, 3.5, 3.6 and 3.7.
Warning
PostGIS database (PostgreSQL ≥ 9.4) is required.
Installation¶
Install last stable version from pypi.
pip install django-countries-flavor
Add countries
to your INSTALLED_APPS settings:
INSTALLED_APPS = [
...
'countries.apps.CountriesAppConfig',
]
Apply migrations:
python manage.py migrate
Load data¶
The loadcountries
management command read all fixtures and re-loaded into the database:
python manage.py loadcountries