coderholic / django-cities

Countries and cities of the world for Django projects
MIT License
927 stars 371 forks source link

RuntimeError: populate() isn't reentrant #121

Closed songcser closed 7 years ago

songcser commented 8 years ago

"cities" in INSTALLED_APPS, I get this exception


Traceback (most recent call last):
  File "manage.py", line 14, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 312, in execute
    django.setup()
  File "/usr/local/lib/python3.4/dist-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.4/dist-packages/django/apps/registry.py", line 78, in populate
    raise RuntimeError("populate() isn't reentrant")
blag commented 8 years ago

Did you ever get this working?

If not, can you answer the following questions:

  1. What version of Django?
  2. What command were you trying to run?
  3. What code in django-cities do you think is responsible for this?
blag commented 7 years ago

You haven't responded, and this doesn't look like it's a bug in django-cities, so I'm going to close this issue. Feel free to reopen with more information or if you trace the issue back to django-cities.