python - django model import error on aws ec2, but runs fine on localhost, heroku and bluemix -
getting next error when accessing app on ec2 :-
importerror @ / cannot import name <model_name> .. .. exception location: /opt/ubuntu/projects/<project_name>/<app_name>/models.py in <module>, line 13
--didn't errors while deploying ec2.
--the app works fine on localhost on heroku , bluemix.
also, tried importing model in remote instance's python shell got no errors :-
ssh -i ~/.ec2/<mykey>.pem ubuntu@54.169.xx.xxx cd opt/ubuntu/projects/<project_name> source ../../envs/<project_name>/bin/activate python manage.py shell <app_name>.models import <model_name>
this unfortunately didn't give errors.
what causing then?
python django amazon-web-services deployment amazon-ec2
No comments:
Post a Comment