Closed jpic closed 9 years ago
+1! This should be easier, but it is currently possible.
./manage.py cities --import=country
./manage.py cities --import=city
<-- This will skip cities that are in countries not in the Country table.from https://github.com/coderholic/django-cities#configuration
...
# Alternatively you can specify multiple filenames to process:
CITIES_FILES = {
'city': {
'filenames': ["US.zip", "GB.zip", ]
'urls': ['http://download.geonames.org/export/dump/'+'{filename}']
},
}
...
Wouldn't it be useful to be able to specify the countries that you want to import the cities for ? Maybe it's not necessary to import all cities of all countries in all projects.