[Fixed]-Django and virtualenv – Adding to git repo

30👍

Don’t add the env to the repo. Instead, before deploying, run command pip freeze and save the output in a text file say requirements.txt. This file should be in the repo. To install dependencies in a fresh virtualenv when deploying:

pip install -r requirements.txt
👤jpic

0👍

Bad idea include .env on git, bcs not all apps installed in .env directory, part of this installed in your system directories

Leave a comment