yourlabs / django-cities-light

A simple app providing three models: Country, Region and City model. Also provided, a command to insert or update data from geonames database dumps. Status: stable.
http://django-cities-light.rtfd.org/
MIT License
336 stars 126 forks source link

Issue importing cities #172

Open erwol opened 6 years ago

erwol commented 6 years ago

Hello, having the next configuration: CITIES_LIGHT_TRANSLATION_LANGUAGES = ['es', 'en'] CITIES_LIGHT_INCLUDE_COUNTRIES = ['ES'] CITIES_LIGHT_INCLUDE_CITY_TYPES = ['PPL', 'PPLA', 'PPLA2', 'PPLA3', 'PPLA4', 'PPLC', 'PPLF', 'PPLG', 'PPLL', 'PPLR', 'PPLS', 'STLMT', 'PPLX',]

almost no cities (only 618 out of 8.116) are imported, at least, from Spain. All the regions are properly imported.

I'm using postgres, django-cities-light==3.3.0, Django==1.11.7.

Any idea? Thanks!

jpic commented 6 years ago

Did you try to debug the import process with pdb ?