-
byMy issue with tailwind not compiling seemed to be an issue with my webpack config. I think it's time to ditch webpack and instead use importmaps for JS/a tox task for tailwind.
Start of a Platinum Tanzawa theme -
byMade my first small PRs to indieweb-utils to pin requirements and introduce pytest. There's a few more I'd like to do e.g. black / flake8 / mypy, but all in due time.
-
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