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

How to get data specific to a country?

Open ddahan opened this issue 2 years ago • 1 comments

I'd like to import data of a specific country (France), without importing the others. After browsing the files proposed by Geonames, it seems that expect for cities (with FR.zip), there is no way to have such filters.

What is the best way to do this? I have some ideas:

  • Import everything, then run a custom script that would delete some db entries?
  • Downloading geonames files and cleaning them manually before running imports on these local files?

Thanks.

ddahan avatar Aug 17 '22 23:08 ddahan

This issue does the trick, but it's not convenient. I suggest mentioning this topic on the documentation.

ddahan avatar Aug 17 '22 23:08 ddahan