ImportError: No module named custom storages – django-storages boto

Question:

I am trying to follow this tutorial for using s3 but pretty much until the last step, somehow I get this error and I am not sure where I should import my own customed module

Tutorial link
https://www.caktusgroup.com/blog/2014/11/10/Using-Amazon-S3-to-store-your-Django-sites-static-and-media-files/
Everything is fine, that I am able to upload / copy / use the static files using s3 then the step about creating custom storage for media usage

I created that .py file inside the same directory as the setting.py (setting.py where it included INSTALLED_APPS and more)

then inside the setting I added below as mentioned on the tutorial

then I ran python manage.py collectstatic

I get this error

Can someone give me a hand?
Thanks in advance.

Answer:

This credit should go to Shubham Namdeo who gave me the link of https://disqus.com/home/discussion/wwwcaktusblog/using_amazon_s3_to_store_your_django_sites_static_and_media_files/

well there are lots of suggestions and ways / errors people found which helps but as for me the part that helped me solve this problem is just move the custom_storage.py into the same directory as the manage.py so manage.py and custom_storage.py are actually in the same level of the directory structure then it all works just like that~

Don’t even need to import anything.

I have attached an image of the part where I got my answer so you don’t have to scroll all the way down if you have the same problem as mine.

s3

Leave a Reply