Python / Django developer Aspiring rustacean
Django: launch pdb in templates with a custom {% breakpoint %} tag
In my recent Boost Your Django DX update, I added a new chapter on debuggers. Here’s an extra technique I didn’t finish in time for the update, but I will include it in the next one.
via https://fosstodon.org/@adamchainz/113561215671265473
Too lazy to install Django debug toolbar or nplusone? Uncover N+1 queries in Django with a unit test!
via https://fosstodon.org/@gagliardi_vale/113555734570831505
Django: fix a view using a debugger with breakpoint()
Python’s breakpoint() function opens its debugger, pdb, which pauses the program and allows you to inspect and modify things. Let’s look at an example of using it within a Django view, from a sample project included in Boost Your Django DX.
via https://fosstodon.org/@adamchainz/113548520379345671
Explore async Django's readiness for production use, its benefits, challenges, and how AI workloads can leverage its capabilities effectively
via https://django-news.com/issues/260
Django: find ghost tables without associated models
Heavy refactoring of models can leave a Django project with “ghost tables”, which were created for a model that was removed without any trace in the migration history. Thankfully, by using some Django internals, you can find such tables.
via https://fosstodon.org/@adamchainz/113519975046464963
Most Django scaling guides focus on theoretical maximums. But real scaling isn't about handling hypothetical millions of users - it's about systematically eliminating bottlenecks as you grow. Here's how to do it right, based on patterns that work in production.
via https://s.ovalerio.net/@dethos/113520274722650845
Package to check for known Django removals and deprecations - ambient-innovation/django-removals
via https://fosstodon.org/@carlton/113510625585221688
Alpha 2? But Alpha 1 only just came out! This is an early developer preview of Python 3.14 Major new features of the 3.14 series, compared to 3.13 Python 3.14 is still in development. This release, 3.14.0a2 is the second of seven planned alpha releases. Alpha releases are intended to make it ea...
"Demystifying the Django ORM" with Simon Charette | Djangonaut Space
YouTube Video
Click to view this content.
via https://indieweb.social/@djangonaut/113508750215734450
Django-related Deals for Black Friday 2024
Here are some Django-related deals for this year’s Black Friday (29th November) and Cyber Monday (1st December), including my own.
via https://fosstodon.org/@adamchainz/113502878568768189
Python's pathlib module is the tool to use for working with file paths. See pathlib quick reference tables and examples.
via https://mastodon.social/@treyhunner/113504959975116212
My standard response when someone asks me how I deal with Python being such a slow language is that Python is by far the fastest to write, cleanest, more maintainable programming language I know, and…
via https://mstdn.social/@miguelgrinberg/113504754524264965
pip 24.3 is a small release with a truststore bugfix, error QoL improvements, and one minor deprecation of noncompliant wheel filenames.
via https://fosstodon.org/@ichard26/113494296968334680
MX Linux is a nice Debian based distro that still supports 32-bit. Or you could use just Debian.
Introducing DJ Beat Drop - a simpler way to start Django projects
via https://mastodon.social/@epicserve/113368760495384984
Posted by Mariusz Felisiak on November 5, 2024
Pros and cons of various techniques for setting a non-user submitted field on a Django ModelForm
via https://mastodon.social/@bmispelon/113424690088823013
🦇 Dracula themes for the Django admin. Contribute to sjbitcode/django-admin-dracula development by creating an account on GitHub.
via https://fosstodon.org/@sjbitcode/113396489981371160
From React to a Django+HTMX based stack - Talk Python Live Stream
YouTube Video
Click to view this content.
via https://fosstodon.org/@sheena/113390833559886015
via https://mastodon.social/@hugovk/113385974873569374
>hugovk.github.io/free-threaded-wheels/ tracks how many of the top 360 PyPI packages have free-threaded wheels. > >Green packages (currently 3%) offer has free-threaded wheels > >Uncoloured packages (82%) offer pure-Python wheels > >Orange packages (16%) have no wheels ready for free-threading (yet!) > >See also Quansight Labs' https://py-free-threading.github.io/tracking/ for a smaller yet fine-grained tracker that also includes build tools.
Python 3.14 Release Schedule: https://peps.python.org/pep-0745/
3.14.0 final: Wednesday, 2025-10-01
I have spent a lot of time playing GB/GBA games and Advance Wars is among my favorites. I love the "hot potato" mode for playing with a friend with just one device.
Relaunch? I never listened to it’s old run, anyone have thoughts on it?
Django Chat is a great podcast!
Python / FastAPI will be better than Java in your situation and is easy to learn. Go should be even better and is also relatively easy to learn!
https://mastodon.cloud/@radiac/113096990972136170
Nanodjango 0.8 is out, adding async view and ASGI support. Now you can write async single file scripts that look like Flask or FastAPI, but with all #django features like models, auth, admin etc.
I own two Raspberries 1, a Raspberry 4 8GB and a Raspberry 5 8GB. I wouldn't recommend the 4 as a full-fledged desktop replacement, but the 5 has been very smooth so far.
I'm currently using the latest Raspberry Pi OS Lite and installed KDE on top.
I was lucky then with the 4 A400 I'm still using. I also have 3 BX500 that have been very reliable.
Kingston A400s and Crucial BXs have been very good as cheap SSDs in my experience.
I haven't used source-based distros, but I've installed Linux on a couple of older Macs. You will probably need to search for proper drivers for the Webcam and Wifi. Other than, you won't have any mayor problems.
My own example. I still have an ancient netbook lying around. It runs on an Intel Atom N270, which is only 32bit / i386. It came with Windows XP and I quickly switched to Mint, when it was still supporting 32bit.
I think the last Ubuntu release supporting i386 was 18.04 (around 2018) and all other distros started to drop i386 support after that.
AFAIK Debian is the only major distro still fully supporting i386. And a Debian based distro that still supports i386 is MX Linux. My ancient and crappy netbook is running MX Linux right now.
My 'weird' example. I have a Raspberry 5! It's ARM and very new. It runs its own distro, Raspberry Pi OS (Debian based), and Ubuntu does also fully support it. Right now if you try some other distro, it probably won't even boot unless you start tinkering a lot with it.
So Debian is definitively a choice for very old hardware. And the odd ARM SoC has usually at least some custom Ubuntu build that runs with it.
Good idea! But the borders don't look good with a darker background. I'm seeing this right now: https://0x0.st/H0JJ.png
django-tui 23.9 adds an interactive shell for running django ORM queries: https://fosstodon.org/@anze3db/111608276020943202
TalkPython episode about Memray: https://talkpython.fm/episodes/show/425/memray-the-endgame-python-memory-profiler
Part 2, PostgreSQL: https://www.paulox.net/2023/11/24/database-generated-columns-part-2-django-and-postgresql/
Part 3, GeoDjango & PostGIS: https://www.paulox.net/2023/12/11/database-generated-columns-part-3-geodjango-and-postgis/
PyQT / PySide are huge, but they have been very good in my experience coding cross platform desktop programs. macOS, Windows and Linux (even on ARM) are very well supported.
The error you would get is a timeout. The easiest way to wait longer is increasing the timeout of your connection. I think the default value for a timeout is 5 seconds.