-
byHappy New Year! π₯³π
-
byMerry Christmas, everyone! π π Β War is over.Β
-
byIβve been starting on a refactoring of Tanzawa to help improve maintainability.
Iβm taking a layered approach where each package is broken down into a data layer (models) at the bottom, queries (data access) above that,Β application (business logic) above that and finally your views at the top.
The idea being that the top layers can go down the stack, but upper layers canβt go up. Iβm not sure if Iβm going to enforce it via linting, but I probably will, eventually.
Weβve been using a similar structure at work and once you get used to it, itβs quick to find the code youβre looking for and keeps things tidy. And linting helps enforce it when we forget or want to be lazy. π -
byI had a really neat idea about Tanzawa π‘. I could use the django sites framework to allow one to manage multiple blogs from a single Tanzawa instance. My inspiration was how people used to have a photo blog separate from their main blog, you could do it with Tanzawa, too. I was also thinking about my not often used anymore Instagram account and how that's just a photoblog, really.
It would still be a bit of work, but not too much. I think I'd just need a table to relate streams to sites and update the public views to take that into account. -
byPlugins can now be enabled and disabled in production (when running in gunicorn/uWSGI) without bringing the server down π.
The issue was that only a single process (the one that handled the request) got the plugin dynamically enabled. When the other processes tried to lookup urls/templates from the plugin, it didn't exist as it's not enabled and returned an error. -
by
-
byPlugins providing custom pages in the Tanzawa admin. How the now page plugin is looking.
Now admin -
byBam! Tanzawa migrations for enabled plugins (loaded via the db) will automatically migrate on Django startup.Not sure how smart this is, but Iβm gonna roll with it.
-
byYes! When you enable / disable plugins in Tanzawa they can dynamically add urls to your site (which also disappear when you disable said plugin).ΒI found the main method on the blog of the head of engineering at my current company. Small world.
-
by@manton Did micro.blog stop sending webmentions? Not getting them for the past couple of posts that have gotten comments.