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

Fixed copy-paste bug #79

Closed
wants to merge 1 commit into from
Closed

Fixed copy-paste bug #79

wants to merge 1 commit into from

Conversation

Apkawa
Copy link

@Apkawa Apkawa commented Feb 25, 2015

% ./manage.py cities_light        
RAM used: 52500 kB Time: 0:00:00 Done: 100%|#######################################################################################################################################################################################|
Traceback (most recent call last):Done:   0%|                                                                                                                                                                                      |
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/apkawa/.envs/tru/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/home/apkawa/.envs/tru/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 377, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/apkawa/.envs/tru/local/lib/python2.7/site-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/apkawa/.envs/tru/local/lib/python2.7/site-packages/django/core/management/base.py", line 338, in execute
    output = self.handle(*args, **options)
  File "/home/apkawa/.envs/tru/local/lib/python2.7/site-packages/cities_light/management/commands/cities_light.py", line 163, in handle
    self.region_import(items)
  File "/home/apkawa/.envs/tru/local/lib/python2.7/site-packages/cities_light/management/commands/cities_light.py", line 265, in region_import
    country_id = self._get_country_id(code2)
  File "/home/apkawa/.envs/tru/local/lib/python2.7/site-packages/cities_light/management/commands/cities_light.py", line 206, in _get_country_id
    self._country_codes[code2] = Country.objects.get(code2=code2).pk
  File "/home/apkawa/.envs/tru/local/lib/python2.7/site-packages/cacheops/query.py", line 424, in get
    return self.get_queryset().inplace().get(*args, **kwargs)
  File "/home/apkawa/.envs/tru/local/lib/python2.7/site-packages/cacheops/query.py", line 316, in get
    return qs._no_monkey.get(qs, *args, **kwargs)
  File "/home/apkawa/.envs/tru/local/lib/python2.7/site-packages/django/db/models/query.py", line 357, in get
    self.model._meta.object_name)
cities_light.models.DoesNotExist: Country matching query does not exist.

settings.py

CITIES_LIGHT_TRANSLATION_LANGUAGES = ['ru', 'en']
CITIES_LIGHT_INCLUDE_COUNTRIES = ['RU',]

@jpic
Copy link
Member

jpic commented Mar 8, 2015

Fixed in 3.1.0 !

@jpic jpic closed this Mar 8, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants