24👍
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.
13👍
If you are experiencing this error even though you’ve included 'storages'
in your INSTALLLED_APPS
and django-storages
in your requirements.txt
, check your STATICFILES_STORAGE
variable.
For previous versions of django-storages
, this should be set as:
STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
For newer versions of django-storages
, the package uses boto3
instead of boto
and this variable should be set as:
STATICFILES_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
If you’re using either version and you’ve configured your DEFAULT_FILE_STORAGE
setting incorrectly, you’ll receive an import error.
The correct settings can be found in the django-storages docs
- [Django]-PHP Frameworks (CodeIgniter, Yii, CakePHP) vs. Django
- [Django]-FileUploadParser doesn't get the file name
- [Django]-How to make two django projects share the same database
11👍
I had the same problem.
In my case I solved the problem with
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
It was executed inside my virtual environment.
- [Django]-How do I install psycopg2 for Python 3.x?
- [Django]-How do you configure Django to send mail through Postfix?
- [Django]-Django substr / substring in templates
3👍
I had installed it within virtual env and was running the exact same issue. My problem was that I forgot to update my requirements.txt. So make you update that file!
- [Django]-How do I match the question mark character in a Django URL?
- [Django]-Django 2, python 3.4 cannot decode urlsafe_base64_decode(uidb64)
- [Django]-Error when using django.template
1👍
If you are using Pipenv make sure you install django-storages using
pipenv install django-storages
so that the Pipfile and Pipfile.lock are both updated.
I had installed using pip inside the virtualenv and requirements.txt was updated but still receiving this error. After digging around I noticed it was not added to the Pipfile. I ran the installer and it cleared up the error.
- [Django]-Django – Annotate multiple fields from a Subquery
- [Django]-How to test Django's UpdateView?
- [Django]-How do I install psycopg2 for Python 3.x?
1👍
I installed with:
pip install -U django-storages
If you go to venv/lib/python3.8/site-packages/storages/backends
you will see no file named S3Boto
but S3Boto3
. I dropped in an old S3Boto file from an old virtual environment and everything worked again.
- [Django]-Django.db.utils.ProgrammingError: relation "bot_trade" does not exist
- [Django]-VueJS + Django Channels
- [Django]-Django: For Loop to Iterate Form Fields
0👍
I was using virtual environment and installed django-storage as well as boto3 . But still I was getting these errors.
Initially I installed the packages using this command
pip install django-storages, boto3
This command solved my Issue
pip install -U django-storages
pip install -U boto3
- It updates the packages
- [Django]-Django index page best/most common practice
- [Django]-Is there a way to filter a queryset in the django admin?
- [Django]-Create a field whose value is a calculation of other fields' values
0👍
EDX only if you are in local then run this command
paver update_assets --theme-dirs=/edx/app/edxapp/edx-platform/themes/theme-name/
- [Django]-ValueError: The field admin.LogEntry.user was declared with a lazy reference
- [Django]-How to specify an IP address with Django test client?
- [Django]-Uninstall Django completely