• Happy New Year! πŸ₯³πŸŽ‰
  • Merry Christmas, everyone! πŸŽ…πŸŽ„ Β War is over.Β 
  • I’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. πŸ˜€
  • I 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.
  • Plugins 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.
  • I think I'm happy with the Plugin List page in Tanzawa.

    Plugins List
  • Plugins providing custom pages in the Tanzawa admin. How the now page plugin is looking.
    Now admin
  • Bam! 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.
  • Yes! 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.
  • @manton Did micro.blog stop sending webmentions? Not getting them for the past couple of posts that have gotten comments.
Previous 34 of 60 Next