I connected to my app using remote_api. When I try to import my models using this
from models import SimpleCounterShard
I get the following error
ImportError: No module named models
I tried searching for solutions and it seems something to do with PYTHONPATH. Can someone tell me how to fix this ? I am using a Mac.
I added the application directory to my system path and it worked
Connecting to remote_api provides you with access to your production data, but not to your python modules. Your source code must be available on your local machine to achieve what you're trying to do.
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