3 ms·
Why using python3-django on debian instead of a venv and the last lts of django from pypi on your script[0] ? [0]: https://github.com/no-gravity/web_app_from_s
by sodimel 4y ago
Why using python3-django on debian instead of a venv and the last lts of django from pypi on your script[0] ?
[0]: https://github.com/no-gravity/web_app_from_scratch/blob/main/django.sh#L32 https://github.com/no-gravity/web_app_from_scratch/blob/main...
- mg 4y agoHow 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.