TIL: How to force PyLance to use a current version of Django-stubs

One of the little annoyances I encounter when I have to use Visual Studio Code, PyLance and a modern version of Django is, that PyLance shows errors for things like the login_not_required decorator. Today I found a workaround by chance when I once again did a web search for the topic. This StackOverflow post outlines the solution — just remove the version of django-stubs included with PyLance. rm -rf ".vscode/extensions/ms-python.vscode-pylance-*/dist/bundled/stubs/django-stubs"

Spent a wonderful evening with friends. And I love the scenic view of Bad Ems. Still not sure if I prefer the calm days in winter or the busier days, with all the tourists.

This is another stunning nighttime photograph from Bad Ems, focusing on a riverside promenade with beautifully aligned glowing street lamps. The river reflects the warm light, creating a picturesque golden shimmer on the water. On the right, a grand historical building stands illuminated, emphasizing its elegant architecture. Bare trees line the walkway, adding a sense of symmetry and charm to the scene. In the distance, the hill on the far right is faintly lit, enhancing the contrast between the natural and urban elements. The overall atmosphere is peaceful and captivating, showcasing the timeless beauty of Bad Ems.This is a nighttime photograph taken in Bad Ems, showcasing a scenic riverside view. The brightly illuminated street lamps along the promenade cast a warm glow over the area, with their light reflecting beautifully on the calm surface of the river. Historical buildings with intricate architectural details line the street on the left side, adding charm to the scene. The overall ambiance is serene and inviting, with the reflections on the water enhancing the tranquil atmosphere.

We have lost the middle ground with so many topics. Currently, it feels like there are only extremes. People behave like everything is a binary topic — black or white, true or false, … It weighs heavily on me and costs so much energy.

The IC stands at the platform in Koblenz.

Off to Bielefeld. First business trip this year. This time I took an IC 2. Not bad, even though it is not as comfortable as an ICE.

micro.blog is such a wonderful service. First time I feel really at home with a blogging service. The backend is not as polished as some others, but I can achieve all the tweaking of themes and so on in a way I understand. Pragmatic > polished.

My friend Michael. Nicholas wrote such a warm and wonderful article about Michael Foord who has passed away this weekend. An article filled with warm words of friendship. I only met Michael once many years ago, but I remember this meeting and the conversation until today. It was one of if these meetings, that you remember your whole life. I am sad.

Plan for this weekend. Apply the finishing touches to django-tailwind-cli to support Tailwind CSS version 3 and 4. So far the test suite works without errors. The docs need some love now.

Ideas how to support Tailwind CSS 4.x in django-tailwind-cli

Tailwind CSS released its first beta version at the end of November of last year. Since then, I have been thinking about how to implement the changes in the Django library django-tailwind-cli. Tailwind CSS 4.0 includes some interesting and substantial changes: Instead of a tailwind.config.js file, you can configure all of your customizations directly in the CSS file where you import Tailwind. Automatic source detection. Simplified theme configuration and CSS-first configuration make a lot of customization steps that I normally add to tailwind.

Continue reading →

My micro.blog got a now page. I love the idea created by Derek Sivers. It adds a convenient way to show what you are up to at the moment. Way more personal than social media posts.

A serious-looking human rocking headphones, glasses, and a hint of a smile (maybe?), while their feline supervisor takes a well-deserved nap on the job. Clearly, the cat is the boss here, proving once again that productivity thrives with purrs and naps. 🐾🎧

This is a rather typical image from my home office. While I work, my beloved cat is sleeping in the crook of my arm. 🐾🎧 #CatLife #WorkFromHomeVibes

I took my Switch out of the cupboard again and decided to play The Legend of Zelda: Breath of the Wild once more. I really like the style of this game. And I need something less violent and less bloody than the stuff on my Xbox.

Week Notes 2025-01-18 — Back to work

This was the first workweek of 2025. A packed week that felt like I was on a high-speed circuit. Jumping back and forth between five active projects, where I have different roles. Hacked a lot of Python and Django for one project. Did a lot of consulting on another project. Long days, but somehow this all felt excellent and I felt alive. It kicked me out of my winter vacation lethargy.

Continue reading →

I joined pixelfed. Not sure, what to do with it yet. I am by no means a great photographer. More like a motivated dilettante. But it is cool to try a new service. And it seems as the feed can be consumed, and the pictures can be posted here too.

Backup for my home server with restic and resticprofile

Recently, I did myself a favor and bought a little Beelink SER5 Pro Mini PC a home server to run some services I use on my home network and also to run some development containers. With this shiny new home server, I also wanted to set up some offsite backups for it. I asked on Mastodon for suggestions and got tips to use borgbackup and restic. Both are reasonable suggestions with great documentation.

Continue reading →

Pretty happy how everything works in this micro.blog. The only thing I have to make up my mind about is, whether I want to use automatic cross posting or not. But the backup to github doesn’t seem to work at all. Not sure what I did wrong about it.

Week Notes 2025-01-10

This has been the last week of my three-week-long winter holidays. A vacation I needed more than I needed any vacation in the last few years. The second half of 2024 was so packed and stressful. I had many plans for this vacation, but eventually, I just relaxed, watched TV, read three books, played some Xbox and spent some calm days with my wife. Something that I haven’t written about is, that I have been approved as an individual member of the Django Software Foundation in December.

Continue reading →

My Alfred Workflow for Todoist

I use Todoist as my task list application for a while now. Before that, I have used Things by Cultured Code. I had to leave Things behind because it is still lacking the ability to share to-do list with other users. But one feature I have missed from Things all the time — the Things helper. This is a small add-on that registers a global shortcut, that creates tasks for E-Mails or links in Safari or Chrome.

Continue reading →

Bye, Bye, WordPress. Hello, micro.blog!

Since Matt started his crazy little campaign at the end of the last year, I had the desire to get rid of WordPress and move elsewhere. First, I thought a bit about using Hugo or so. But this was too much work for my little, low-volume blog. And I also wanted a service that lets me post from my browser and while I am using my mobile. It should be simple, too.

Continue reading →

My Default Apps at the End of 2024

Jeff and Kev wrote about the default apps they use. It is a nice way to reflect on which tools I actually use and how tools might change over the years. 🌐 Browser: Safari, Firefox + Chrome for testing ⛔️Ad Blocking: Wipr 2 🔍 Search: Kagi 📨 Mail Service: iCloud (private) + O365 (work) 📮 Mail Client: Apple Mail 📝 Notes:Clairefontaine Notebook +Lamy fountain pen, sometimes Apple Notes 📁 Cloud File Storage: iCloud Drive 💬 Chat: Signal (Friends & Family), Apple Messages and Microsoft Teams (work) 📆 Calendar: Apple Calendar ✅ To-Do: Todoist 🛒 Shopping Lists: Todoist 📹 Video Calls: In Your Face + Teams + Zoom 📖 RSS Service: Feedbin 🎵 Music.

Continue reading →

PyCharm, Tailwind & htmx

After I shared my initial thoughts on PyCharm, I moved more and more of my projects — personal and work related — to PyCharm. So far, it works out pretty nice, and I am getting more and more accustomed to the IDE. Most of my projects use Django, Tailwind and htmx. While the Django support is great, using Tailwind and htmx needs tweaking. Tailwind I already mentioned the required workaround for Tailwind in my initial post.

Continue reading →