Django的填充()不是折返 [英] Django populate() isn't reentrant
本文介绍了Django的填充()不是折返的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不断收到这个当我尝试加载在生产我的Django应用程序。我尝试了所有的计算器答案,但一切都没有固定它。任何其他的想法。 (我使用Django 1.5.2和Apache)
回溯(最后最近一次调用):
文件/var/www/thehomeboard/wwwhome/wsgi.py37行,上述<&模块GT;
应用= get_wsgi_application()
文件/usr/local/lib/python2.7/dist-packages/django/core/wsgi.py,第14行,在get_wsgi_application
django.setup()
文件/usr/local/lib/python2.7/dist-packages/django/__init__.py18行,在安装
apps.populate(settings.INSTALLED_APPS)
文件/usr/local/lib/python2.7/dist-packages/django/apps/registry.py,行78,在填充
提高RuntimeError(填充()不是可重入)
RuntimeError:填写()不折返
解决方案
在年底,我不得不是我试图运行第二Django应用程序,并在我的Apache配置定义如下没有问题:
WSGIDaemonProcess ...
WSGIProcessGroup ...
刚刚得知你可以没有定义他们跑单Django应用程序,但是当它的两个它产生的冲突。
I keep getting this when I try to load my Django application on production . I tried all the stackoverflow answers but nothing has fixed it. Any other ideas. (I'm using Django 1.5.2 and Apache)
Traceback (most recent call last):
File "/var/www/thehomeboard/wwwhome/wsgi.py", line 37, in <module>
application = get_wsgi_application()
File "/usr/local/lib/python2.7/dist-packages/django/core/wsgi.py", line 14, in get_wsgi_application
django.setup()
File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 78, in populate
raise RuntimeError("populate() isn't reentrant")
RuntimeError: populate() isn't reentrant
解决方案
In the end the problem that I had was that I tried to run a second Django app and did not have the following defined in my apache config:
WSGIDaemonProcess ...
WSGIProcessGroup ...
Just learned that you can run a single django app without defining them but when its two it produces a conflict.
这篇关于Django的填充()不是折返的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文