3 ms·
How would you replace the line apt install -y python3-django with "a venv and the last lts of django from pypi"? I would be curious to see which lines yo
by mg 4y ago
How would you replace the line
apt install -y python3-django
with "a venv and the last lts of django from pypi"?
I would be curious to see which lines you replace this with and if the script runs the same afterwards.
Personally, I run an application either in a container or in a VM. So I never had the need for virtual environments. Does the latest Django version give you something you are looking for that is not in Debian's version?
A benefit of doing it the Debian way is that it is easy (one line of code) and no extra system has to be put in place for updates. As Django is updated along with your OS updates.
- sodimel 4y agoLike this: python3 -m venv .venv . .venv/bin/activate python3 -m pip install django I think python packages should be installed through pypi, instead of being installed using whatever package manager your system use.