I recently purchased a new laptop, so I'd be able to work not just from my workstation.
I have a Django REST app, and for this project I'm using a VirtualEnv.
My question is:
How can I "sync" the virtualenv to install the new dependencies packages?
In my workstation I installed Django, Django REST, etc...
What can I do so in my laptop I won't have to manually install the new dependencies every-time?
Activate your virtual environment, then run:
pip freeze > requirements.txt
However you are transferring the code, you can transfer this file. Then on your laptop, can you make it part of your sync script:
pip install -r requirements.txt
Typically I have a pair of sh files that looks like
# upload change
pip freeze > requirements.txt
git add -a .
git commit -m "message"
git push
And
# Get files
git pull
pip install -r requirements.txt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With