web | https://406.ch/writing/category-django/ |
---|---|
Author |
Sept. 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 MoreMay 24, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
Workbench: Coffee time! I have written about the Workbench agency software a few weeks back. Back when we were using Slack at Feinheit we used a Donut bot to generate randomized invites for a coffee break. We lost that bot when we switched to Discord. I searched some time for an equivalent bot for Discord but couldn’t find any, so like any self-respecting nerd, break lover and NIH-sufferer I reimplemented the functionality as a part of our agency software. The first version generated tota…
Read MoreMay 22, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
Weeknotes (2024 week 21) There have been times when work has been more enjoyable than in the last few weeks. It feels more stressful than at other times, and this mostly has to do with particular projects. I hope I’ll be able to move on soon. blacknoise I have released blacknoise 1.0. It’s an ASGI app for static file serving inspired by whitenoise. The 1.0 version number is only a big step in versioning terms, not much has happened with the code. It’s a tiny little well workin…
Read More