Skip Navigation
adamj.eu Python: my new uv setup for development - Adam Johnson

uv is a new, fast Python packaging tool. (I believe it is pronounced as written, “uhv”, rather than spelt out like “you-vee”. This saves a syllable, fitting the tool’s ethos of speed.)

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

0
www.pythonmorsels.com Python's many command-line utilities

Every command-line tool included with Python. These can be run with python -m module_name.

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

0
lincolnloop.com Rescuing Django Projects with Smoke Tests: Quick Wins for Long-Term Success

Learn how Lincoln Loop revives neglected Django projects using smoke tests to quickly stabilize codebases, catch critical bugs, and improve long-term reliability.

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

0
github.com GitHub - facebookincubator/ft_utils: A library of utilities to support efficient, scalable Python development leveraging Free Threaded Python.

A library of utilities to support efficient, scalable Python development leveraging Free Threaded Python. - facebookincubator/ft_utils

via https://fosstodon.org/@dongheena/113126553653153451

0
Jump
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!

    3
  • simonwillison.net uv under discussion on Mastodon

    Jacob Kaplan-Moss kicked off this fascinating conversation about [uv](https://docs.astral.sh/uv/) on Mastodon recently. It's worth reading the whole thing, which includes input from a whole range of influential Python community members …

    via https://fedi.simonwillison.net/@simon/113102865356065670

    15
    Jump
    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!

    2
  • adamj.eu Django: hoist repeated decorator definitions - Adam Johnson

    Django provides us with a rich set of view decorators. In this post, we’ll look at a technique for hoisting repeated use of these decorators to reduce repetition.

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

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

    2
  • discuss.python.org Python 3.13.0RC2, 3.12.6, 3.11.10, 3.10.15, 3.9.20, and 3.8.20 are now available!

    Hi there! A big joint release today. Mostly security fixes but we also have the final release candidate of 3.13 so let’s start with that! Python 3.13.0RC2 Final opportunity to test and find any show-stopper bugs before we bless and release 3.13.0 final on October 1st. Get it here: Call to actio...

    via https://mastodon.social/@hugovk/113097578994494173

    6
    www.valentinog.com django-filter: filtering a foreign key model property

    How to filter a foreign key model property with django-filter.

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

    0
    www.davidhang.com Taming the beast that is the Django ORM - An introduction

    The Django ORM, how it compares to raw SQL and gotchas that you should be aware of when using it

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

    0
    adamj.eu Git: avoid reset --hard, use reset --keep instead - Adam Johnson

    When I started learning Git, I found many references covering two ways to undo commits with git reset:

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

    8
    hynek.me Why I Still Use Python Virtual Environments in Docker

    Whenever I publish something about my Python Docker workflows, I invariably get challenged about whether it makes sense to use virtual environments in Docker containers. As always, it’s a trade-off, and I err on the side of standards and predictability.

    via https://mastodon.social/@hynek/113067230489781151

    10
    adamj.eu Django: avoid “useless use of .all()” - Adam Johnson

    Here’s a little ORM pet peeve of mine that may deepen your understanding of how QuerySets work.

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

    1
    buttondown.com Evolving Django’s auth.User

    Folks will occasionally ask if I've got an opinion on some topic Django related. I'll reply that I've got an opinion on everything, so I've certainly got an...

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

    0
    adamj.eu Django: rotate your secret key, fast or slow - Adam Johnson

    Django’s SECRET_KEY setting is used for cryptographic signing in various places, such as for session storage and password reset tokens. This makes keeping it secure a high priority since an attacker with the key could forge things like password reset tokens.

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

    0
    www.djangoproject.com Django 5.1 released

    Posted by Natalia Bidart on August 7, 2024

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

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

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

    3
  • Jump
    Communication between Raspberry Pis on different networks
  • A VPN would be my first choice. ZeroTier works like a charm on the RPis. I've shared even SQLite databases over Samba over Zerotier among a bunch of RPis daily for a couple of years without a hitch.

    1
  • Jump
    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.

    0
  • Jump
    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.

    2
  • Jump
    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

    3
  • Jump
    Cannot open instances
  • Same problem here!

    6
  • Jump
    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

    1
  • Jump
    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.

    2
  • Jump
    Geany 2.0 is out! | Geany
  • I use VSCode for coding, but if it's a small script or pure text files, then I use Geany.

    2
  • Jump
    Litestar 2.0 Released
  • I've been following this project for a while and it's great. They are just not great at promoting it.

    4
  • Jump
    Is there going to be Pro version?
  • I was also a Pro user and I'd gladly pay again for a Pro version.

    Ultra was too much for me on Reddit and here it's the same.

    Thanks!

    15