Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get() returned more than one SubRegion its 35 #224

Open
MahadAkbar opened this issue Jul 29, 2020 · 2 comments
Open

get() returned more than one SubRegion its 35 #224

MahadAkbar opened this issue Jul 29, 2020 · 2 comments

Comments

@MahadAkbar
Copy link

I just install django_cities_light

These are I just wrote in setings.py

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

When I run the command

        python manage.py cities_light

Its shows this error

        cities_light.models.MultipleObjectsReturned: get() returned more than one SubRegion -- it returned 35!

Any solution? I want all cities of USA and Canada

@marianoeramirez
Copy link
Collaborator

@MahadAkbar Please apply the solution from the ticket #222

@MahadAkbar
Copy link
Author

@MahadAkbar Please apply the solution from the ticket #222

Thanks for this , Its not showing any error now, but Its not dump any USA city and after cities_light_fixtures load, Its shows this error

      cities_light.exceptions.SourceFileDoesNotExist: C:\cities_light_country.json.bz2 does not exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants