django-countries icon indicating copy to clipboard operation
django-countries copied to clipboard

Adding Kosovo

Open uberfresh opened this issue 1 year ago • 4 comments

Hi,

Can you add Kosovo, please? I really need that.

Thanks :smile:

uberfresh avatar Apr 21 '23 10:04 uberfresh

Hi,

I had the same issue you can add the following in your settings: COUNTRIES_OVERRIDE = { 'XK': { 'names': ['Kosovo'], 'alpha3': 'XXK', 'ioc_code': 'KOS', }, } The flag file should be located here (depending on your static setup): your_project/static/your_project/img/country-flags/xk.svg

xk

dream-guide avatar Jul 19 '23 14:07 dream-guide

Same problem here !

brammittendorff avatar Aug 03 '23 15:08 brammittendorff

push

tomdtp avatar Dec 11 '23 08:12 tomdtp

push Kosovo is not in the ISO 3166-1 country code list that is probably why it's not included. You can add it manually (see code above).

dream-guide avatar Dec 11 '23 12:12 dream-guide

Yep, if it's not in ISO 3166-1 then it's not going to be included. Add it manually as above 👍🏻

SmileyChris avatar Mar 27 '24 03:03 SmileyChris