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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With