One of those moments when I realize software ages like milk, not wine.
I need to reinstall one of my old DigitalOcean droplets with a newer Ubuntu version to get updated Python and PHP.
Looks like Iโve got some unexpected weekend chores.
@djangotricks.bsky.social
on development with Django, Python, and JavaScript ๐ founder, developer, author, creator, dad of 2, he/him Currently developing https://pybazaar.com
One of those moments when I realize software ages like milk, not wine.
I need to reinstall one of my old DigitalOcean droplets with a newer Ubuntu version to get updated Python and PHP.
Looks like Iโve got some unexpected weekend chores.
About Converting UTC Time to Local Time in JavaScript
www.djangotricks.com/tricks/4yQyV...
Each of them is based on different JavaScript frameworks or just vanilla JS and it's still great to have those options to choose from.
03.08.2025 20:52 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0This weekend, I was working with 3 implementations of autocomplete widgets. Here they are sorted from the best till the worst according to user and developer experience:
1. react-select
2. django-autocomplete-light with Select2
3. tagify
Ufff. User timezones added to all of my projects where they needed to be added. Time for some Netflix.
03.08.2025 20:40 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0About Sense of Humor
www.djangotricks.com/tricks/33uEA...
About Sane Defaults
www.djangotricks.com/tricks/FnTHk...
If itโs not related to DaisyUI, it might be due to the default TailwindCSS configuration used by django-tailwind.
In the end, I split things into three separate CSS files: one for TailwindCSS and DaisyUI, one for Tagify, and one for Tagify overrides.
I was importing this file into my stylesheet: github.com/yairEO/tagif..., but none of the variables like --tag-pad ended up in the compiled CSSโunless I explicitly added them to the Tailwind safelist.
02.08.2025 10:36 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0If I were building that project today from scratch, I would be using TailwindUI - it costs more, but the results are more stable and predictable.
02.08.2025 00:26 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0In one of my projects, I am using DaisyUI - it's a TailwindCSS-based theme that shakes the tree, so to speak - every unused CSS feature is removed.
Today, I had to override some styles of the tagify library, and DaisyUI insisted on removing my CSS variables just because.
Aimed to implement timezones for my SaaS projects today, but got stuck at adjusting pixels and colors in CSS. ๐คฆ๐ผโโ๏ธ
01.08.2025 23:26 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0Maybe it had to do with the extra annotations I had to add, or perhaps the time measurements aren't fully reliable since CPU and RAM load can vary at different times.
01.08.2025 20:43 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0It's kind of embarrassing when you add ORM optimizations like select_related, prefetch_related, only, or defer expecting better performance, but some queries actually get slower instead.
01.08.2025 20:38 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0About Tagging Tests
www.djangotricks.com/tricks/TjkPz...
About Simulating Network Latency
www.djangotricks.com/tricks/4LzFd...
About Synchronizing Files Between Different Environments
www.djangotricks.com/tricks/mPKSx...
Python's break statement is often used when you need an early break condition, that is a condition which would indicate that you don't need to loop any further because you've found what you're looking for.
Read more ๐ https://trey.io/xtql6h
#Python
Today I learned that there is a triage git-branch conflict resolver built into PyCharm and I used it for the first time. It was easier than I thought - just accepting changes from left or right column to the middle one.
29.07.2025 22:22 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0If somebody doesn't know what to give me as a present for my next (or last) birthday, here's a hint:
www.etsy.com/de-en/listin...
About Detecting User's Timezone
www.djangotricks.com/tricks/58fsp...
About DateTime Input Widget
www.djangotricks.com/tricks/6QVJU...
About Displaying Dates and Times in User's Timezone
www.djangotricks.com/tricks/mHb7v...
If you've ever wondered how to display dates and times in your visitors' local time on a Django website, here's how you can do it.
www.djangotricks.com/blog/2025/07...
About DRY
www.djangotricks.com/tricks/uijzJ...
This weekend, I added user timezone support to display times correctly for PyBazaar's international users.
There are some new learnings.
A blog post will follow.
About Good Ideas
www.djangotricks.com/tricks/m6n2z...
About Choices of Geographic Lists
www.djangotricks.com/tricks/7jA6x...
After 5 years perfecting my SaaS UX, I still spot flaws and wonder how I missed them.
A pro designer suggested a full redesign, but I hold back - every detail took time and effort to get to this polished state.
The IKEA effect makes me stubborn.
Iโm very grateful to have learned this week that my books have been used as references in diploma works by students from China, Bangladesh, the United States, Singapore, Indonesia, Ukraine, Turkey, Croatia, Italy, and Spain.
25.07.2025 00:09 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0