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
112 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+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,080 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
• 56,120 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
• 56,120 points
66 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,400 points
19 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
282 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,400 points
15 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,400 points
86 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,400 points
11 views
0 votes
1 answer

What price do I eventually pay for a AWS spot-instance and do I drive up the prices?

Spot instance prices vary according to Availability Zones ...READ MORE

answered Aug 4, 2018 in Cloud Computing by ArchanaNagur
• 1,150 points
21 views
+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,360 points
7 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,080 points
16 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
31 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.