191 days ago · Tech · hide · Fediverse post

Due to the flexibiilty of Django , I will often use it in places that are not a normal web app. A combination of the Django ORM and admin commands makes a Django project a useful place to collect useful scripts. In the past I would often add things to Cron, but due to the tasks framework I have started to add some jobs there. To make it even easier to call tasks, I hooked up Alfred to my Django project. Zatsumu 雑務 Every project needs a name, and since this is a private project, any name is fine. I called it Zatsumu which means: miscellaneous duties; (trivial) routine tasks; small jobs; odd jobs For the most part, it is a normal Django project, even though I never run the web component. One minor interesting snippet, is one I did to be able to reuse the repo across a few machines. # from settings.py import socket from importlib.util import find_spec HOST_FQDN = socket.gethostname() HOST_SHORT = HOST_FQDN.split(".")[0] for app in [ f"zatsumu.custom.{HOST_SHORT}",…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town