Can I run 'manage.py' from AWS EB Linux instance

+2 votes

Here is my concern:

How do I  run manage.py from AWS EB which is Elastic Beanstalk Linux instance?

I have tried this : '/opt/python/current/app', I get below mentioned exception.

Traceback (most recent call last):
  File "./manage.py", line 8, in <module>
    from django.core.management import execute_from_command_line
ImportError: No module named django.core.management
can anyone help?
Apr 10, 2018 in Cloud Computing by hemant
• 5,750 points
217 views

2 answers to this question.

+1 vote

following are the ways to do the same:

  1. SSH login to Linux
  2. Run source /opt/python/run/venv/bin/activate
  3. Run source /opt/python/current/env
  4. Run cd /opt/python/current/app
  5. Run manage.py <commands>

Following command may also just about help:

  1. Run cd /opt/python/current/app
  2. Run /opt/python/run/venv/bin/python manage.py <command>
answered Apr 10, 2018 by brat_1
• 7,110 points
The whole point of EB is to automate deployment and not have to SSH into a machine
+1 vote
answered Aug 17, 2018 by Priyaj
• 57,300 points

Related Questions In Cloud Computing

0 votes
2 answers

How can I route request to EC2 instance behind AWS ELB?

You can have a look at the ...READ MORE

answered Aug 17, 2018 in Cloud Computing by Priyaj
• 57,300 points
129 views
0 votes
1 answer

AWS: How can you connect to an EC2 Linux instance using Putty?

1. Select your instance in the EC2 ...READ MORE

answered Aug 6, 2018 in Cloud Computing by Meci Matt
• 9,440 points
62 views
+1 vote
2 answers

I want to Migrate from Oracle RDBMS to AWS S3 using Kinesis

Try to understand AWS Schema Conversion Tool ...READ MORE

answered Apr 20, 2018 in Cloud Computing by hemant
• 5,750 points
431 views
0 votes
1 answer

AWS: Is there a way I can edit files in S3 right away in the browser?

There is not currently an AWS-supported method ...READ MORE

answered Jun 19, 2018 in Cloud Computing by Meci Matt
• 9,440 points
40 views
0 votes
1 answer

AWS: Can we Disable Redis Instance Swap on ElastiCache

Is it because you are having trouble ...READ MORE

answered May 29, 2018 in Cloud Computing by Meci Matt
• 9,440 points
181 views
0 votes
1 answer

AWS: Can anyone tell me how do I build an AMI?

Building of an AMI can be initiated ...READ MORE

answered Jul 13, 2018 in Cloud Computing by Meci Matt
• 9,440 points
25 views
0 votes
1 answer
+1 vote
1 answer

What API's can I use to upload data to AWS Glacier/

You have sdk's available in both Java ...READ MORE

answered Oct 11, 2018 in Cloud Computing by DragonLord999
• 8,380 points
31 views
0 votes
1 answer

Can someone tell if one Elastic IP address enough for every instance that I have running and would do the job?

Depends! Every instance comes with its own ...READ MORE

answered Jun 26, 2018 in Cloud Computing by brat_1
• 7,110 points
39 views
+3 votes
4 answers

Can AWS be used to Host a Website?

Yes! you can host a fully static ...READ MORE

answered Oct 16, 2018 in Cloud Computing by Peter S. Francis
73 views