Skip Navigation
User banner
Luis Norambuena

Python / Django developer Aspiring rustacean

Posts 144
Comments 26

Django: launch pdb in templates with a custom {% breakpoint %} tag

adamj.eu Django: launch pdb in templates with a custom {% breakpoint %} tag - Adam Johnson

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.

Django: launch pdb in templates with a custom {% breakpoint %} tag - Adam Johnson

via https://fosstodon.org/@adamchainz/113561215671265473

1
www.valentinog.com Detecting N+1 queries in Django with unit testing

Too lazy to install Django debug toolbar or nplusone? Uncover N+1 queries in Django with a unit test!

Detecting N+1 queries in Django with unit testing

via https://fosstodon.org/@gagliardi_vale/113555734570831505

0

Django: fix a view using a debugger with breakpoint()

adamj.eu Django: fix a view using a debugger with breakpoint() - Adam Johnson

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.

Django: fix a view using a debugger with breakpoint() - Adam Johnson

via https://fosstodon.org/@adamchainz/113548520379345671

0
jonathanadly.com Django Async: Ready for Prime Time?

Explore async Django's readiness for production use, its benefits, challenges, and how AI workloads can leverage its capabilities effectively

Django Async: Ready for Prime Time?

via https://django-news.com/issues/260

0

Django: find ghost tables without associated models

adamj.eu Django: find ghost tables without associated models - Adam Johnson

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.

Django: find ghost tables without associated models - Adam Johnson

via https://fosstodon.org/@adamchainz/113519975046464963

0
slimsaas.com The Practical Guide to Scaling Django

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.

The Practical Guide to Scaling Django

via https://s.ovalerio.net/@dethos/113520274722650845

0
github.com GitHub - ambient-innovation/django-removals: Package to check for known Django removals and deprecations

Package to check for known Django removals and deprecations - ambient-innovation/django-removals

GitHub - ambient-innovation/django-removals: Package to check for known Django removals and deprecations

via https://fosstodon.org/@carlton/113510625585221688

1
discuss.python.org Python 3.14.0 alpha 2

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

Python 3.14.0 alpha 2
0

"Demystifying the Django ORM" with Simon Charette | Djangonaut Space

via https://indieweb.social/@djangonaut/113508750215734450

0

Django-related Deals for Black Friday 2024

adamj.eu Django-related Deals for Black Friday 2024 - Adam Johnson

Here are some Django-related deals for this year’s Black Friday (29th November) and Cyber Monday (1st December), including my own.

Django-related Deals for Black Friday 2024 - Adam Johnson

via https://fosstodon.org/@adamchainz/113502878568768189

0
www.pythonmorsels.com Python's pathlib module

Python's pathlib module is the tool to use for working with file paths. See pathlib quick reference tables and examples.

Python's pathlib module

via https://mastodon.social/@treyhunner/113504959975116212

9
blog.miguelgrinberg.com Is Python Really That Slow?

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…

Is Python Really That Slow?

via https://mstdn.social/@miguelgrinberg/113504754524264965

23
ichard26.github.io What's new in pip 24.3

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

0

DjangoCon US 2024 videos and playlist is now live on YouTube

0
Is there an Ubuntu variant these days that works on 32-bit?
  • 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

    0
    www.djangoproject.com Django bugfix release issued: 5.1.3

    Posted by Mariusz Felisiak on November 5, 2024

    Django bugfix release issued: 5.1.3
    0

    Pros and cons of various techniques for setting a non-user submitted field on a Django ModelForm

    via https://mastodon.social/@bmispelon/113424690088823013

    0
    github.com GitHub - sjbitcode/django-admin-dracula: 🦇 Dracula themes for the Django admin

    🦇 Dracula themes for the Django admin. Contribute to sjbitcode/django-admin-dracula development by creating an account on GitHub.

    GitHub - sjbitcode/django-admin-dracula: 🦇 Dracula themes for the Django admin

    via https://fosstodon.org/@sjbitcode/113396489981371160

    0

    From React to a Django+HTMX based stack - Talk Python Live Stream

    via https://fosstodon.org/@sheena/113390833559886015

    0

    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.

    0
    Python 3.14.0 alpha 1
  • Python 3.14 Release Schedule: https://peps.python.org/pep-0745/

    3.14.0 final: Wednesday, 2025-10-01

  • Recommendations on casual GB/GBA games?
  • 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.

  • Django Chat: Fall 2024 Podcast Relaunch
  • Relaunch? I never listened to it’s old run, anyone have thoughts on it?

    Django Chat is a great podcast!

  • What languages/frameworks for small, very low usage apps on limited hardware?
  • 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!

  • radiac/nanodjango: Run Django models and views from a single file, and convert it to a full project.
  • 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.

  • Can You Use Raspberry Pi 5 as a Desktop Computer?
  • 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.

  • Cheap, but reliable SSDs?
  • I was lucky then with the 4 A400 I'm still using. I also have 3 BX500 that have been very reliable.

  • Cheap, but reliable SSDs?
  • Kingston A400s and Crucial BXs have been very good as cheap SSDs in my experience.

  • OS Recommendations for 2014 MacBook Pro
  • 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.

  • I'm working on a distro recommendation flowchart/ list for newcomers and need your input please! (Post is not only this picture btw and is mainly text)
  • 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.

  • Fitting logo for the community
  • Good idea! But the borders don't look good with a darker background. I'm seeing this right now: https://0x0.st/H0JJ.png

  • Cannot open instances
  • Same problem here!

  • A TUI interface for running Django Commands
  • django-tui 23.9 adds an interactive shell for running django ORM queries: https://fosstodon.org/@anze3db/111608276020943202

  • Is there any way to run a Python GTK3 apps on Windows? [Solved]
  • 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.

  • Using WAL mode in SQLite and its interaction with VACUUM
  • 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.