Django stops working with RuntimeError: populate() isn't reentrant

6,011 views
Skip to first unread message

pradam programmer

unread,
Dec 22, 2016, 10:27:47 AM12/22/16
to django...@googlegroups.com
Hi Guys,
I am unable to rectify this error I am doing the following things:
1. I am running the project in django 1.7 later upgraded to 1.7.11 to check whether I fix the issue but no use. :(
2. In settings.py I commented the allowed_host = [*] still no use :(
I don't know why this error is coming..? 
Thank you

ADEWALE ADISA

unread,
Dec 22, 2016, 10:38:11 AM12/22/16
to django...@googlegroups.com

Restart the server

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGGVXBN%2BkjQZeyr2gTMEQm8NLJA8s1MeLJ7tGsjh__wA5D-LLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

pradam programmer

unread,
Dec 22, 2016, 10:43:17 AM12/22/16
to django...@googlegroups.com
I restarted hundred times still can't able to rectify it 

Babatunde Akinyanmi

unread,
Dec 23, 2016, 3:17:02 AM12/23/16
to Django users

How about the stack trace?


pradam programmer

unread,
Dec 23, 2016, 3:48:15 AM12/23/16
to django...@googlegroups.com
this is the traceback i am getting..
(dj-1.7)mahiti@mahiti:~/SST$ python manage.py runserver
Traceback (most recent call last):
  File "manage.py", line 14, in <module>
    execute_from_command_line(sys.argv)
  File "/home/mahiti/dj-1.7/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/home/mahiti/dj-1.7/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute
    django.setup()
  File "/home/mahiti/dj-1.7/local/lib/python2.7/site-packages/django/__init__.py", line 21, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/mahiti/dj-1.7/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

ludovic coues

unread,
Dec 24, 2016, 7:18:29 PM12/24/16
to django...@googlegroups.com
it's hard to tell without any code but I would bet on something akin to circular import.

You could try to remove your application from  INSTALLED_APPS in settings.py then put them back in one by one. This should reduce the amount of code to check.

Reply all
Reply to author
Forward
0 new messages