4 ms·
One thing I never figured out was dependency management. Some others are linking to two scoops of django and other starter templates, it seems like none of them
by awongh 4y ago
One thing I never figured out was dependency management. Some others are linking to two scoops of django and other starter templates, it seems like none of them get past a kludgy set or requirements.txt files. I want something easy to use like ruby bundler or npm. I want to be able to specify my dependencies and install them in one command, and specify if something is production or local in that same command.
- h3ctic 4y agoHave you tried Poetry? (https://python-poetry.org https://python-poetry.org)
- Arcanum-XIII 4y agoAnd a way to manage the update of them… currently doing this blindly, running the test suite after each updated package hoping nothings broken. Slow and frustration prone with “sorry this package require packagex version 1 but packagew require it to be 2 now”
- mrweasel 4y agoOut of curiosity, and because I rather prefer pip and the requirements.txt file over npm or anything Ruby has to offer, what issues do you encounter with dependency management in Django/Python. Granted, trying to build your own reusable modules for Django is not a great experience. In these cases the tools feels rather restrictive.
- Gordonjcp 4y ago> I want to be able to specify my dependencies and install them in one command "pip install -r requirements.txt" If you have different requirements, you can use a different file. Obviously this is only for development, and if you package your Python code properly then you can install the whole damn thing as a package.
- lmns 4y agoI use pip-tools with venvs for that and can‘t complain. It pins dependencies and you can create different requirements.txts for local dev and production (production for me is usually dev minus some debugging tools). It‘s not particularly fancy, but it gets the job done.