Reputation: 3038
After migrating to Django 1.8
my app doesn't start. Error I'm getting is:
Traceback (most recent call last): File "./manage.py", line 20, in
<module>
execute_from_command_line(sys.argv) File "***/.virtualenvs/vtslive/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 338, in execute_from_command_line
utility.execute() File "***/.virtualenvs/vtslive/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 312, in execute
django.setup() File "***/.virtualenvs/vtslive/local/lib/python2.7/site-packages/django/__init__.py",
line 18, in setup
apps.populate(settings.INSTALLED_APPS) File "***/.virtualenvs/vtslive/local/lib/python2.7/site-packages/django/apps/registry.py",
line 78, in populate
raise RuntimeError("populate() isn't reentrant") RuntimeError: populate() isn't reentrant
I can't find solution for that issue :/
Upvotes: 0
Views: 351
Reputation: 3038
I think I found the problem. I use celery
and to make it work in Django 1.7
I had to add this line to celery.py
django.setup()
After removing it, both celery
and my app started to work :)
@Brandon you're 100% right - this exception tells nothing ;)
Upvotes: 1