我在我的Django应用程序中得到ValueError: current limit exceeds maximum limit
。如果我从安装应用程序中删除haystack,它就会消失。我已经尝试升级haystack,降级haystack,删除与haystack相关的所有代码,但它仍然是一个问题。
完整追溯:
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/Users/user/pyProjects/projects/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
utility.execute()
File "/Users/user/pyProjects/projects/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 312, in execute
django.setup()
File "/Users/user/pyProjects/projects/env/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/user/pyProjects/projects/env/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/Users/user/pyProjects/projects/env/lib/python2.7/site-packages/django/apps/config.py", line 86, in create
module = import_module(entry)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/Users/user/pyProjects/projects/env/lib/python2.7/site-packages/haystack/__init__.py", line 56, in <module>
maxnofile[1]))
ValueError: current limit exceeds maximum limit
已安装的应用:
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
# 3rd Party Modules
'corsheaders',
'crispy_forms',
'rest_framework',
'wkhtmltopdf',
'autocomplete_light',
'whoosh',
'haystack',
'threadedcomments',
'django_comments',
'pytz',
)
答案 0 :(得分:5)
我相信你做到了
pip install haystack
但是,你应该使用django-haystack,所以
pip uninstall haysatck
pip install django-haystack