Python Django错误Django.contrib.messages.storage.fallback.FallbackStorage
我尝试使用redis安装芹菜,在localhost上运行正常,但在生产服务器上出现以下错误:Python Django错误Django.contrib.messages.storage.fallback.FallbackStorage,python,django,pip,Python,Django,Pip,我尝试使用redis安装芹菜,在localhost上运行正常,但在生产服务器上出现以下错误: Internal Server Error: / Traceback (most recent call last): File "/srv/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 108, in get_response response = middleware_method(request)
Internal Server Error: /
Traceback (most recent call last):
File "/srv/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 108, in get_response
response = middleware_method(request)
File "/srv/venv/lib/python2.7/site-packages/django/contrib/messages/middleware.py", line 11, in process_request
request._messages = default_storage(request)
File "/srv/venv/lib/python2.7/site-packages/django/contrib/messages/storage/__init__.py", line 12, in default_storage
return import_string(settings.MESSAGE_STORAGE)(request)
File "/srv/venv/lib/python2.7/site-packages/django/utils/module_loading.py", line 33, in import_string
six.reraise(ImportError, ImportError(msg), sys.exc_info()[2])
File "/srv/venv/lib/python2.7/site-packages/django/utils/module_loading.py", line 29, in import_string
return getattr(module, class_name)
ImportError: Module "django.contrib.messages.storage.fallback.FallbackStorage" does not define a "FallbackStorage" attribute/class
谷歌没有帮助
我不知道发生了什么,我不能“回滚”并让我的生产现场工作。。。尝试卸载所有新软件包(芹菜、redis…),但仍然收到此错误
Pip冻结:
amqp==1.4.9
anyjson==0.3.3
billiard==3.3.0.22
celery==3.1.20
dj-database-url==0.3.0
dj-static==0.0.6
Django==1.8.2
django-adminplus==0.3
django-appconf==1.0.1
django-crispy-forms==1.5.0
django-embed-video==1.0.0
django-kronos==0.9
django-paypal==0.2.7
django-suit==0.2.13
djangorestframework==3.1.3
gunicorn==19.1.1
kombu==3.0.33
MySQL-python==1.2.5
nodeenv==0.13.2
Pillow==3.1.1
psycopg2==2.5.1
python-crontab==2.0.1
python-dateutil==2.4.2
pytz==2015.4
redis==2.10.5
requests==2.7.0
six==1.9.0
static3==0.6.1
wheel==0.24.0
有人能帮我吗?我仍然是django(python)新手。嗯,我尝试卸载django,然后再次安装,现在一切正常。谜团:)如果使用java脚本显示消息,则有可能引发此类错误。不可能!javascript与此无关