django-planet

Blog: Matthias Kestenholz: Posts about Django

web https://406.ch/writing/category-django/
Author

django-ckeditor

Feb. 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 More

Weeknotes (2024 week 03)

Jan. 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 More

Weeknotes (2024 week 01)

Jan. 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 More

Weeknotes (2023 week 50)

Dec. 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 More

django-json-schema-editor

Dec. 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 More

Weeknotes (2023 week 48)

Nov. 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 More

Weeknotes (2023 week 44)

Nov. 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 More

Customize the Django admin to differentiate environments

Oct. 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

Weeknotes (2023 week 42)

Oct. 18, 2023 » Matthias Kestenholz: Posts about Django » [Archived Version]

Weeknotes (2023 week 42)Vacation in Italy We have spent a wonderful family week in Italy. The voyage by train was very comfortable and we had a great time there. I have lived close to lakes all my life but the sea is always something else. Now I enjoy the cold temperatures of fall. Going back (forward) to GitJournal I have tried several note taking apps but I’m now back using GitJournal with a Git repository filled with Markdown notes. It works well enough. I just wish that there was a wa…

Read More

Weeknotes (2023 week 40)

Oct. 4, 2023 » Matthias Kestenholz: Posts about Django » [Archived Version]

Weeknotes (2023 week 40)More work on hosting several websites from a single Django application server using feincms3-sites I have mentioned feincms3-sites last week in my last weeknotes entry; I have again given this package a lot of attention in the last days, so another update is in order. It is now possible to override the list of languages available on each site. That’s especially useful for an upcoming campaign site where the umbrella group’s site is available in three language…

Read More