Note this is for eb python platform, it is different for Docker
cd /opt/python/current/app
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 ...
source /opt/python/run/venv/bin/activate
source /opt/python/current/env
cd /opt/python/current/app
python manage.py <commands>