Weeknotes 2022-07-25
,Found a workaround for the fastdeploy / SQLAlchemy / asyncpg / Linux deadlock bug. I now instantiate a new SQLAlchemy engine on every request. That's probably not very efficient, since it would be better to use the engine's built-in ability to hold a connection pool, but having working code is a good start.
Progress on having a landing page where people can create podcasts/blogs:
- Finished Add remove domain / deployed fqdn #14
- Finished Switch between cast / wordpress #2 for deployments 🍾 - it was a complete surprise for me that this is even possible. But since I have now a working deployment system where all responsibilities are nicely separated, it's possible no not only to deploy Django, but anything including weird stuff like Wordpress without having to worry the rest of my system might suffer.
- Finished Fix pytest warnings + some cleanup stuff and coverage
Articles
- An SPA Alternative
- How Did REST Come To Mean The Opposite of REST?
- How To Test Django Models (With Examples)
- Building the blog while flying it Series' Articles
Videos
- In Python, partials are an easy way to reuse function code. 🐍 🤩
- Don't move elements in a list while looping over it! You will get surprising (wrong!) results: 😳 🤨
- Since #Python 3.7, modules can define __getattr__ to provide dynamic attributes on modules. Why use two-argument arithmetic when you can do it with one!? 😎 🥳 😍
Software
- django-readers | A lightweight function-oriented toolkit for better organisation of business logic and efficient selection and projection of data in Django projects.
- django-sesame has a new tutorial | I'm searching for a solution to be able to log in users for a newly deployed site without having to store a password. This could be one.
Podcasts
- UKW100 Brexit: Kopf unter der Decke (Unsere kleine Welt) | Yup, brexit is still a trainwreck.