Does not load some cities of a country

19 views
Skip to first unread message

Leandro Peralta

unread,
Nov 20, 2019, 10:43:47 PM11/20/19
to yourlabs
Hi, I'm trying to implement django-cities-light
I noticed that I only load in the database the cities PPL my configuration is:


CITIES_LIGHT_TRANSLATION_LANGUAGES  =  [ 'es', 'en' ] 
CITIES_LIGHT_INCLUDE_COUNTRIES  =  [ 'AR' ] 
CITIES_LIGHT_INCLUDE_CITY_TYPES = ['PPL', 'PPLA', 'PPLA2', 'PPLA3', 'PPLA4', 'PPLC', 'PPLF', 'PPLG', 'PPLL', 'PPLR', 'PPLS', 'STLMT',]

this configuration only brings 127 cities.


Checked manually and the cities don't exist in the file cities15000 buy yes in http://download.geonames.org/export/dump/AR.zip

Do I need to configure any parameters?

Leandro Peralta

unread,
Nov 20, 2019, 10:59:15 PM11/20/19
to yourlabs
sorry, solved

CITIES_LIGHT_TRANSLATION_LANGUAGES  =  [ 'es', 'en' ] 
CITIES_LIGHT_INCLUDE_COUNTRIES  =  [ 'AR' ] 
CITIES_LIGHT_INCLUDE_CITY_TYPES = ['PPL', 'PPLA', 'PPLA2', 'PPLA3', 'PPLA4', 'PPLC', 'PPLF', 'PPLG', 'PPLL', 'PPLR', 'PPLS', 'STLMT',]
CITIES_LIGHT_CITY_SOURCES = ['http://download.geonames.org/export/dump/AR.zip']
Reply all
Reply to author
Forward
0 new messages