django-cities
django-cities copied to clipboard
How to get data specific to a country?
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.
This issue does the trick, but it's not convenient. I suggest mentioning this topic on the documentation.