Leachy Peachy Leachy Peachy - 5 months ago 16x
Python Question

django-storages S3 Backend Won't Load

I have a Django app that runs just fine on my localhost as well as on my Linode Ubuntu server.

I am running


From the Django shell on my localhost, I type:

from S3 import CallingFormat

It works just fine. However, when I type that into the Django shell on the server, I get

No module named S3

Am I missing something? Thank you in advance for any help you guys can offer.


Looks like setup.py doesn't install S3 module in PYTHONPATH. This can be easily fixed by downloading S3 module anywhere in your PYTHONPATH (type import sys;print sys.path to find these folders):

sudo curl -O https://bitbucket.org/dziegler/django-storages/raw/9a3017a4f577a7d740451c1a6dde9079c69f09b6/S3.py 

That helped me