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,790 points
1,675 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,200 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
• 58,020 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
• 58,020 points
1,136 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,460 points
1,115 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,790 points
2,496 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,460 points
5,205 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,460 points
1,283 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,460 points
633 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,450 points
1,112 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,200 points
618 views
+2 votes
5 answers

Possibility of Querying EC2 tags from within instance

You can use the describe-instances cli call ...READ MORE

answered Oct 25, 2018 in Cloud Computing by nabarupa
2,395 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP