Django存储:导入错误 - 没有模块命名为存储(Django storages: Import Error - no module named storages)
我试图使用Django的存储后端(用于BotoS3)
settings.py:
INSTALLED_APPS = ( ... 'storages', ... )如http://django-storages.readthedocs.org/en/latest/index.html所示。
和,requirements.txt:
django-storages==1.1.8但我得到错误:
django.core.exceptions.ImproperlyConfigured: ImportError storages: No module named storages我究竟做错了什么?
I'm trying to use Django's storages backend (for BotoS3)
settings.py:
INSTALLED_APPS = ( ... 'storages', ... )as shown in http://django-storages.readthedocs.org/en/latest/index.html.
and, requirements.txt:
django-storages==1.1.8But am getting the error:
django.core.exceptions.ImproperlyConfigured: ImportError storages: No module named storagesWhat am I doing wrong?
最满意答案
有可能您在virtualenv中,并将virtualenv外部的软件包安装到默认的python安装中。 确保你没有这样做。
There is a possibility that you are in a virtualenv and installing the package outside the virtualenv into the default python installation. Make sure you are not doing that.
更多推荐
发布评论