web | https://406.ch/writing/category-django/ |
---|---|
Author |
March 13, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
django-prose-editor – Prose-editing component for the Django adminDuring the last few days I have been working on a prose-editing component for the Django admin which will replace the basically dead django-ckeditor in all of my projects. It is based on ProseMirror, in my opinion the greatest toolkit for building prose editors for the web. Here’s a screenshot: django-prose-editor is in active development; it’s available on PyPI and is developed in the open here on GitHub. The versio…
Read MoreFeb. 16, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
Weeknotes (2024 week 07)This is a short weeknotes entry which mainly contains a large list of releases. The reason for the large list is that I haven’t published a weeknotes entry in weeks. Releases form-designer 0.23: Only small changes, mainly updated the package for current Django and Python versions. feincms3-cookiecontrol 1.4.6: A minor change: Swallow exceptions which happen during startup when clobbering the scripts data fails. As an aside: I find it funny that I have discovered t…
Read MoreFeb. 14, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
django-ckeditor It has finally happened. The open source version of CKEditor 4 does not contain fixes for known problems, see the CKEditor 4.24.0 LTS announcement. I totally get why the CKEditor developers did this and can only thank them for all the work that went into the editor. I wish I didn’t have to do the migration work to move basically everything to a different editor. The CKEditor 4 LTS version is only expected to be supported until the end of 2026 and I have a few projects whic…
Read MoreJan. 17, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
Weeknotes (2024 week 03)Djangonaut Space I wish all participants a good time and much success. I do not have anything to do with it really but I enjoy the idea a lot and maybe there will be a pull request or two to review. Kubernetes After years and years of hosting all sites on VPS I have finally reached the point where the old setup is more annoying to work with than switching to a new one. I have searched long for a solution which wasn’t as limited as some PaaS and as complex as going …
Read MoreJan. 3, 2024 » Matthias Kestenholz: Posts about Django » [Archived Version]
Weeknotes (2024 week 01)First weeknotes post for 2024! Happy new year! Looking back on 2023 Writing I have published almost 40 posts last year. That’s almost as many posts as I published in the time period from 2014 to 2023. Coworking to write more does work. I already had a quite active blog from 2005 to 2008 with a few posts after that; everything before 2014 was in german and mainly concerned with green politics and climate change. I’m still very interested in these topics but I …
Read MoreDec. 15, 2023 » Matthias Kestenholz: Posts about Django » [Archived Version]
Weeknotes (2023 week 50)django-imagefield The path building scheme used by django-imagefield has proven problematic: It’s too likely that processed images will have the same path. I have changed the strategy used for generating paths to use more data from the source; it’s now possible (and recommended!) to set IMAGEFIELD_BIN_DEPTH to a value greater than 1; 2 or 3 should be sufficient. The default value is 1 which corresponds to the old default so that the change won’t be back…
Read MoreDec. 13, 2023 » Matthias Kestenholz: Posts about Django » [Archived Version]
django-json-schema-editorI have extracted a JSON editing component based on @json-editor/json-editor from a client’s project and released it as open source. It isn’t the first JSON editing component by far but I like it a lot for the following reasons: It works really well. It supports editing arrays of objects using a tabular presentation. Tabular isn’t always better, but stacked definitely isn’t always better as well. The data structure is defined as JSON schema,the…
Read MoreNov. 30, 2023 » Matthias Kestenholz: Posts about Django » [Archived Version]
Weeknotes (2023 week 48)A few weeks have passed since the last update. The whole family was repeatedly sick with different viruses etc… I hope that the worst is over now. Who knows. 12-factor Django storage configuration I should maybe write a longer and separate post about this, but speckenv has gained support for the Django STORAGES setting. No documentation yet, but it supports two storage backends for now, the file system storage and django-s3-storage, my go-to library for S3-compati…
Read MoreNov. 2, 2023 » Matthias Kestenholz: Posts about Django » [Archived Version]
Weeknotes (2023 week 44)Unmaintained but maintained packages There’s a discussion going on in the django-mptt issue tracker about the maintenance state of django-mptt. I have marked the project as unmaintained in March 2021 and haven’t regretted this decision at all. I haven’t had to fix inconsistencies in the tree structure once since switching to django-tree-queries. And if that wasn’t enough, I get little but only warm and thankful feedback for the latter, so that&rsq…
Read MoreOct. 19, 2023 » Matthias Kestenholz: Posts about Django » [Archived Version]
Customize the Django admin to differentiate environments We often have the same website running in different configurations: Once as a production site. Once as a place where editors update and preview the content. The content is later automatically (and maybe partially) transferred from this environment to the production environment. Once as a stage environment to stabilize the code. And maybe additional environments for local development. The Django admin panel mainly uses CSS variables for…
Read More