michaelconnor00
9/24/2015 - 3:59 PM

Run Django Commands from AWS Elastic Beanstalk Virtual Environment

Run Django Commands from AWS Elastic Beanstalk Virtual Environment

How to run manage.py from AWS Elastic Beanstalk

Note this is for eb python platform, it is different for Docker

Location of Current App:

  cd /opt/python/current/app

Location of Venv:

  cd /opt/python/run/venv/bin/
  # OR activate environment
  source /opt/python/run/venv/bin/activate
  # OR run command...
  /opt/python/run/venv/bin/python ...

Activate venv and Run Django commands:

  source /opt/python/run/venv/bin/activate
  source /opt/python/current/env
  cd /opt/python/current/app
  python manage.py <commands>