Leachy Peachy
Leachy Peachy

Reputation: 1132

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

django==1.4.2
django-storages==1.1.6
boto==2.8.0
Python==2.7.2+

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.

Upvotes: 3

Views: 1719

Answers (1)

Daniil Ryzhkov
Daniil Ryzhkov

Reputation: 7596

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

Upvotes: 4

Related Questions