1
我在我的Django应用程序中获得ValueError: current limit exceeds maximum limit
。如果我从安装应用程序中删除干草堆,它会消失。我曾尝试升级干草堆,降级干草堆,删除与干草堆相关的所有代码,但仍然是一个问题。Django:ValueError:电流限制超过最大限制
完全回溯:
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',
)
您使用什么数据库配置? – Ward
'数据库= { '缺省':{ '发动机': 'django.db.backends.sqlite3', 'NAME':os.path.join(BASE_DIR, 'db.sqlite3'), } } ' – Mantis
你在Mac OS上运行吗? – solarissmoke