1👍
✅
You should use filenames
instead of filename
when you provide a list of files:
CITIES_FILES = {
'city': {
'filenames': ['CO.zip',],
'urls': ['http://download.geonames.org/export/dump/'+'{filename}']
},
}
or alternatively:
CITIES_FILES = {
'city': {
'filename': 'CO.zip',
'urls': ['http://download.geonames.org/export/dump/'+'{filename}']
},
}
More details in the Configuration section at https://github.com/coderholic/django-cities
Source:stackexchange.com