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.
Asked
Active
Viewed 2,893 times
1
-
Do you mean country calling codes (phone prefix numbers)? `django-countries` is not providing that – GwynBleidD Aug 25 '15 at 14:58
-
Exactly, I mean calling codes. It exists some library that give me this information? – dfrojas Aug 25 '15 at 15:03
-
Maybe you will find something useful in [python-phonenumbers](https://github.com/daviddrysdale/python-phonenumbers) package – GwynBleidD Aug 25 '15 at 15:06
1 Answers
1
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.

Alasdair
- 298,606
- 55
- 578
- 516