python
Saturday, February 1, 2025
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"
Saturday, January 18, 2025
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 →
Friday, January 10, 2025
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 →
Saturday, December 7, 2024
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 →
Wednesday, November 27, 2024
I am frustrated by VSCode lately. I might share the reasons in another post someday. For the moment, I turned to PyCharm and try to adopt it as my primary IDE for Python projects. So far, many things are really wonderful, like the refactoring tools, the AI toolbox, the constant level of memory usage and the editor in general.
But some things are at best called confusing, and I am not sure how to solve or deal with them.
Continue reading →
Tuesday, October 1, 2024
Two weeks ago, I published my article UV - I am (somewhat) sold. Since then, a lot has changed for me. I switched all my personal projects to uv from poetry. I have set up a plan how and when to convert our company projects to uv. I am a fan. (And I still hope that I don't get stomped by the elephant.) After my post, I received a lot of feedback and also found some interesting follow-ups, that I want to share with you.
Continue reading →
Sunday, September 15, 2024
A bit more than a week ago, I posted this on Mastodon after I read several posts in a long thread on using UV for Python projects. Simon has created a blog post summing up and linking to the most significant posts in this long thread — uv under discussion on Mastodon.
Now, a week later, I have to admit that I was wrong. I still stand with my opinion that the speed improvement is not crucial to me, but it is of course nice to have.
Continue reading →