News for hackers. Stuff that matters.
Re:Boring Python: dependency management (2022) by linkdd on Monday February 05, 2024 @04:31AM (#39259116)
For Django projects, I made a gist as a template of what I use: https://gist.github.com/linkdd/4aac2c2efc4a51af6ca4b05f395de...

In there, you'll find the settings.py split by environment (like you would have in the Elixir world), and a multistage Docker image designed to be cache-friendly (for faster Docker builds). Some stages even run the test suite, so it could be compared to a CI pipeline.

Not having build dependencies in the production image is definitely a good approach.

There are no comments on this comment yet.