coderholic / django-cities

Countries and cities of the world for Django projects
MIT License
921 stars 375 forks source link

No PostalCodes imported #106

Closed fynjah closed 8 years ago

fynjah commented 8 years ago

Hey! Thanks for app!

I've imported US.zip and everything is ok, except PostalCodes.. Zero records in this model.

What i do wrong? May you help me please.

CITIES_FILES = {
    'city': {
       'filenames': ["US.zip",],
       'urls': ['http://download.geonames.org/export/dump/'+'{filename}']
    },
}

CITIES_PLUGINS = [
    'cities.plugin.reset_queries.Plugin', 
]
coderholic commented 8 years ago

Yeah you need to add...

CITIES_POSTAL_CODES = ['US']

See the readme for more details.

fynjah commented 8 years ago

Work like a charm. Thanks. Dunno why i missed this param.