mastodon.ie is one of the many independent Mastodon servers you can use to participate in the fediverse.
Irish Mastodon - run from Ireland, we welcome all who respect the community rules and members.

Administered by:

Server stats:

1.9K
active users

#django

34 posts30 participants1 post today

📦 django-upgrade 1.24.0 is out!

* Automatic target Django version detection from pyproject.toml!
No need to specify `--target-version` any more or keep it in sync.
* Two minor fixers for Django 5.2 - expected next month!
* Restoration of a Django 5.0 fixer for enumeration type choices.
* A niche import fix for a move in Django 2.1.

Thanks to Thibaut Decombe for contributing the latter two features.

🙏 Please test!

Changelog: github.com/adamchainz/django-u

Project: github.com/adamchainz/django-u

So, I'm tinkering a bit with #Django, and I wanted to run different Django versions on the /same/ virtual machine. Here `#virtualenv` helps only insomuch that it can seperate dev envs, but it all still shares the `~/.local/lib/python3.10/site-packages` folder.

(I can't imagine this problem hasn't been solved, but couldn't find anything online.)

I've resorted to overriding HOME: basically I wrote a `virtualenvenv` script that I source, and then I have the separation I want/need. 🔨

I just realized that #Django intentionally does not document how to use #doctests (they say so in the forums¹).

And I’m annoyed right now.

positive: they are wrong about doctests not being maintained in #Python: python 3.13 brings colored output for doctests:

docs.python.org/3/whatsnew/3.1

I consider doctests to be one of the most elegant ways to test beautifully self-contained functions with easy to understand input.

¹ forum.djangoproject.com/t/test

EDIT: please read the thread! *happy*

Python documentation
Python documentationWhat’s New In Python 3.13Editors, Adam Turner and Thomas Wouters,. This article explains the new features in Python 3.13, compared to 3.12. Python 3.13 was released on October 7, 2024. For full details, see the changelog. ...

April is just around the corner, and we’re gearing up for our next Django London meetup on April 8 at Kraken!

We’re excited to confirm our first speaker: David Imba Zorto, presenting “How to Use Cursor as a Professional: Cursor Rules!”

We may still have room for another talk - if you have a Python/Django topic, let us know!

If you’ve RSVP’d but can’t come, please free your spot: bit.ly/41MwEeE

Stay tuned for more details. See you on April 8!

MeetupDjango London Meetup April, Tue, Apr 8, 2025, 6:15 PM | MeetupApril edition! We will be at Kraken Tech (Octopus Energy Group) London office! (in-person only event, no streaming) **Talks:** **How to use Cursor as a professional. Curs
#Python#Django#tech

#djangos Lieblingsplatz ist IMMER "im Weg" und "mittendrin".
Auch, wenn der Napfbefüller einfach nur nen #kaffee trinken will.
Es stört ihn auch nicht, wenn man über ihn steigen muß.
Witzig fand ich, dass jeder, den ich gefragt habe, ob ich ihn weg nehmen soll, geantwortet hat "nö, geht schon"😉
#django #MastodonDogs #dogs #dogsofmastodon #Mastodonrudel #hunde #Leonberger #leonbergers #hund #fotografie #Fotodienstag #dienstagsfoto #Fellnasen #dog #hund #lovemydog #lebenmithund #schlafendehunde

It’s been [0] days since generating #django forms on the fly from dynamic data has been a sensible solution to a thing I’ve been building.

this is *fine*

🔥Exciting news!
We’re honored to have 𝐓𝐲𝐩𝐞𝐟𝐮𝐥𝐥𝐲 (@typefully) as a sponsor for #DjangoConAfrica2025! 🤝🌍 Their dedication to growing the African Django community is second to none.
✨ Let’s grow together—submit your proposal by March 31 : pretalx.com/djangocon-africa-2 🎤✨

Or learn more how you can support us here: 2025.djangocon.africa/sponsor_ 🎉💡

Continued thread

Past decisions made with limited knowledge can come back to bite... hard.

I finally formalized "Model 1" last year. It's a detailed, fully-documented internal standard for modeling infra in #Django for water accounting, scheduling, simulation, and more. It’s not perfect, but it meets my needs and looks beautiful visualized, IMO.

#Simulations

2/6

#TIL: setUp and tearDown are not run before and after each TestCase, but after each test. 🤯

I should've been using setUpClass and tearDownClass instead. Guess that happens when you normally use pytest instead of unittest, except for #Django stuff. :fingerguns: