Aidas Bendoraitis (DjangoTricks)'s Avatar

Aidas Bendoraitis (DjangoTricks)

@djangotricks.bsky.social

on development with Django, Python, and JavaScript ๐Ÿ founder, developer, author, creator, dad of 2, he/him Currently developing https://pybazaar.com

21 Followers  |  27 Following  |  302 Posts  |  Joined: 24.01.2025  |  1.4773

Latest posts by djangotricks.bsky.social on Bluesky

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.

06.08.2025 03:20 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 1
Preview
About Converting UTC Time to Local Time in JavaScript

About Converting UTC Time to Local Time in JavaScript
www.djangotricks.com/tricks/4yQyV...

04.08.2025 17:28 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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    ๐Ÿ“Œ 0

This 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

03.08.2025 20:50 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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    ๐Ÿ“Œ 0
Preview
About Sense of Humor

About Sense of Humor
www.djangotricks.com/tricks/33uEA...

03.08.2025 14:06 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
About Sane Defaults

About Sane Defaults
www.djangotricks.com/tricks/FnTHk...

02.08.2025 13:54 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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.

02.08.2025 10:36 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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    ๐Ÿ“Œ 0

If 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    ๐Ÿ“Œ 0

In 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.

02.08.2025 00:23 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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    ๐Ÿ“Œ 0

Maybe 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    ๐Ÿ“Œ 0

It'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    ๐Ÿ“Œ 0
Preview
About Tagging Tests

About Tagging Tests
www.djangotricks.com/tricks/TjkPz...

01.08.2025 09:32 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
About Simulating Network Latency

About Simulating Network Latency
www.djangotricks.com/tricks/4LzFd...

01.08.2025 09:29 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
About Synchronizing Files Between Different Environments

About Synchronizing Files Between Different Environments
www.djangotricks.com/tricks/mPKSx...

30.07.2025 11:28 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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

30.07.2025 00:12 โ€” ๐Ÿ‘ 2    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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    ๐Ÿ“Œ 0

If 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...

29.07.2025 21:37 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
About Detecting User's Timezone

About Detecting User's Timezone
www.djangotricks.com/tricks/58fsp...

29.07.2025 11:16 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
About DateTime Input Widget

About DateTime Input Widget
www.djangotricks.com/tricks/6QVJU...

29.07.2025 11:14 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
About Displaying Dates and Times in User's Timezone

About Displaying Dates and Times in User's Timezone
www.djangotricks.com/tricks/mHb7v...

29.07.2025 11:13 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
User Timezones in Django

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...

28.07.2025 05:55 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
About DRY

About DRY
www.djangotricks.com/tricks/uijzJ...

27.07.2025 22:49 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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.

27.07.2025 02:24 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
About Good Ideas

About Good Ideas
www.djangotricks.com/tricks/m6n2z...

26.07.2025 08:11 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
About Choices of Geographic Lists

About Choices of Geographic Lists
www.djangotricks.com/tricks/7jA6x...

25.07.2025 15:01 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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.

25.07.2025 03:13 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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

@djangotricks is following 20 prominent accounts