Posts tagged as "python"
Nested ViewSets with Django REST Framework
May 05, 2023 • 6 min readI’ve been using Django REST Framework for a while now but mainly in old projects where lots of code have been written. In most cases, these…
Convert a Poetry package to the src layout
January 19, 2022 • 3 min readThe layout is commonly used in Python ecosystem nowadays (even the pytest docs recommend it), but I’m not really using it on my projects. I…
Convert Python requirements to Poetry format
January 07, 2021 • 2 min readI recently wrote about migrating a Python project to Poetry, however, this guide is quite manual process. I recently came across dephell, wh…
Migrating a project to Poetry
October 18, 2020 • 9 min readPoetry is a tool solving the problem of Python packaging. It was started back in February 2018 by Sébastien Eustace (also the author of pend…
Auto-update pre-commit hooks with GitHub Actions
July 12, 2020 • 3 min readPre-commit hooks are great to reduce the feedback loop for things like linting and auto-formatting. Git supports them out of the box, but…
Making Celery work nicely with Django transactions
June 25, 2019 • 5 min readI’ve been using Celery in my Django projects for about 5 years now. Along the way, I made some mistakes, learned from them and picked up a…
Static vs. Media files in Django
June 18, 2019 • 6 min readDjango is a great Web framework for building Web applications in Python. It comes with a lot of batteries included that you’ll most likely…
Add cache-control header to an entire S3 Bucket using Boto3
May 01, 2019 • 2 min readI recently came across a task which seem pretty generic, but for which I couldn’t find an existing solution online: update the header for…