Django Repositories: Import Error - No Modules with Storage Names

I am trying to use the Django storage backend (for BotoS3)

settings.py:

INSTALLED_APPS = (
...
'storages',
...
)

as shown in http://django-storages.readthedocs.org/en/latest/index.html .

and, needs.txt:

django-storages==1.1.8

But I get the error:

django.core.exceptions.ImproperlyConfigured: ImportError storages: No module named storages

What am I doing wrong?

+6
source share
4 answers

There is a possibility that you are in a virtual environment and installing a package outside of virtualenv in a python installation by default. Make sure you do not.

+10
source

env . , .txt. , !

+2

.

pip install django-storages

Collecting django-storages
  Downloading django_storages-1.6.5-py2.py3-none-any.whl (47kB)
    100% |################################| 51kB 358kB/s
Installing collected packages: django-storages
Successfully installed django-storages-1.6.5

.

+2

Pipenv, , django-,

pipenv django-

Pipfile Pipfile.lock.

pip virtualenv require.txt , . , Pipfile. , .

+1

Source: https://habr.com/ru/post/1537429/


All Articles