web | https://406.ch/writing/category-django/ |
---|---|
Author |
Nov. 20, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
Weeknotes (2024 week 47) I missed a single co-writing session and of course that lead to four weeks of no posts at all to the blog. Oh well. Debugging I want to share a few debugging stories from the last weeks. Pillow 11 and Django’s get_image_dimensions The goal of django-imagefield was to deeply verify that Django and Pillow are able to work with uploaded files; some files can be loaded, their dimensions can be inspected, but problems happen later when Pillow actually tries resizing or…
Read MoreOct. 23, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
Weeknotes (2024 week 43) I had some much needed time off, so this post isn’t that long even though four weeks have passed since the last entry. From webpack to rspack I’ve been really happy with rspack lately. Converting webpack projects to rspack is straightforward since it mostly supports the same configuration, but it’s much much faster since it’s written in Rust. Rewriting things in Rust is a recurring theme, but in this case it really helps a lot. Building the front…
Read MoreSept. 25, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
Weeknotes (2024 week 39) CSS for Django forms Not much going on in OSS land. I have been somewhat active in the official Django forum, discussing ways to add Python-level hooks to allow adding CSS classes around form fields and their labels. The discussion on the forum and on the pull request goes in the direction of allowing using custom BoundField classes per form or even per project (instead of only per field as is already possible today). This would allow overriding css_classes, e.g. to add…
Read MoreSept. 13, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
django-content-editor now supports nested sections django-content-editor (and it’s ancestor FeinCMS) has been the Django admin extension for editing content consisting of reusable blocks since 2009. In the last years we have more and more often started automatically grouping related items, e.g. for rendering a sequence of images as a gallery. But, sometimes it’s nice to give editors more control. This has been possible by using blocks which open a subsection and blocks which close a…
Read MoreSept. 11, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
Weeknotes (2024 week 37) django-debug-toolbar alpha with async support! I have helped mentoring Aman Pandey who has worked all summer to add async support to django-debug-toolbar. Tim has released an alpha which contains all of the work up to a few days ago. Test it! Let’s find the breakages before the final release. Dropping Python 3.9 from my projects I have read Carlton’s post about the only green Python release and have started dropping Python 3.9 support from many of the packag…
Read MoreAug. 28, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
Weeknotes (2024 week 35) Getting deep into htmx and django-template-partials I have been skeptical about htmx for some time because basically everything the library does is straightforward to do myself with a few lines of JavaScript. I am a convert now because, really, adding a few HTML attributes is nicer than copy pasting a few lines of JavaScript. Feels good. The combination of htmx with django-template-partials is great as well. I didn’t know I had been missing template partials until…
Read MoreAug. 20, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
How I handle versioning I have been reading up on versioning methods a bit, and I noticed that I never shared my a bit unorthodox versioning method. I previously wrote about my rules for releasing open source software but skipped everything related to versioning. I use something close to the ideas of semantic versioning but it’s not quite that. Note that the versioning scheme has nothing to do with production readiness, it’s more about communicating the state of the project. 0.0.x &…
Read MoreAug. 14, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
Weeknotes (2024 week 33) Partying It’s summer, it’s hot, and it’s dance week. Lethargy is over, Jungle Street Groove is coming up. Good times. Releases django-json-schema-editor 0.1: I have finally left the alpha versioning. I’m still not committing to backwards compatibility, but I have started writing a CHANGELOG. django-prose-editor 0.7.1: Thanks to Carlton’s pull request I have finally cleaned up the CSS somewhat and made overriding the styles more agreeable w…
Read MoreJuly 31, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
Weeknotes (2024 week 31) I have missed almost two months of weeknotes. I’ve got some catching up to do. I have tried writing a larger piece on my thoughts about CMS, but with everything going on in my personal and work life I haven’t made much progress. This weeknotes entry is me trying to get back into the groove of writing (and publishing!) regularly. django-prose-editor I have previously written about the ProseMirror-based editor for Django websites here. I have continued working…
Read MoreJune 7, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
Weeknotes (2024 week 23) Switching everything from pip to uv Enough said. I’m always astonished how fast computers can be. Releases django-admin-ordering 0.18: Added a database index to the ordering field since we’re always sorting by it. django-prose-editor 0.4: Dropped the jQuery dependency making it possible to use the editor outside the Django administration interface without annoying JavaScript errors. Allowed additional heading levels and moved the block type button…
Read More