dfrojas
dfrojas

Reputation: 723

How to get Country Code in django-countries

How can I get country code with this library? I don't want to get for example "CO" for Colombia or "NZ" for New Zealand, I want 57 for Colombia, or 1 for USA, for example.

Upvotes: 1

Views: 3123

Answers (1)

Alasdair
Alasdair

Reputation: 308939

Django-countries does not provide international dialling codes.

According to the readme, there is a numeric field, but that contains the ISO 3166-1 code, which isn't what you want.

Upvotes: 1

Related Questions