8

Python Link to External Project in Venv

 3 years ago
source link: https://snakeycode.wordpress.com/2020/01/18/python-link-to-external-project-in-venv/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Python Link to External Project in Venv

To re-use my Django code, I have been writing Django Apps. Usually, I push an app to Digital Ocean, then use pip to pull it and install it in my projects.

Sometimes I want to tweak the app and try the new code in a project. It takes too long to go to the app, edit it, push it then pull it. The solution is to put the local version of my app into the project venv using this command:

pip install -e <local path to app>

The -e makes it editable from within the project.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK