My PR to django-pghistory got merged, and the maintainer cut a release right away.
Go check what's new in v3.5.5
https://django-pghistory.readthedocs.io/en/3.5.5/release_notes/
My PR to django-pghistory got merged, and the maintainer cut a release right away.
Go check what's new in v3.5.5
https://django-pghistory.readthedocs.io/en/3.5.5/release_notes/
I’ve got a job to upgrade a #Django project, running version… 1.1.4 on Python 2.7. This will definitely be interesting.
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: https://github.com/adamchainz/django-upgrade/blob/main/CHANGELOG.rst
A couple of days left to register for the #Free Django Girls Dublin workshop.
Applications closes on Sat April 29 (AoE)
https://djangogirls.org/en/dublin/#apply
Questions? dublin@djangogirls.org
New blog post about the re-work of my bookmarking app.
Quite a technical one, but that's how things in life go.
This is about how I implemented the JWT auth system.
https://www.mauromotion.com/posts/2025-03-27-003-delish-jwt-authorization/
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.
Moin zusammen und Grüße von der #Morgenrunde mit dem Napfbefüller
Habt nen tollen Tag und lasst euch nicht ärgern
#django #MastodonDogs #dogs #dogsofmastodon #Mastodonrudel #hunde #Leonberger #leonbergers #hund #fotografie #fotodonnerstag #doggerstag #donnersdog #lebenmithund #lovemydog #bigdogs #gutenmorgentroet #dog #hund
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:
https://docs.python.org/3/whatsnew/3.13.html#whatsnew313-doctest
I consider doctests to be one of the most elegant ways to test beautifully self-contained functions with easy to understand input.
¹ https://forum.djangoproject.com/t/testing-django-with-doctest/25550
EDIT: please read the thread! *happy*
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: https://bit.ly/41MwEeE
Stay tuned for more details. See you on April 8!
#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*
Denk nicht mal dran, Kleene.
Wenn ich meine Pfote auf deiner Leine habe, ist Katzen jagen nicht mehr möglich
#django #MastodonDogs #dogs #dogsofmastodon #Mastodonrudel #hunde #Leonberger #leonbergers #hund #fotografie #Fotodienstag #dienstagsfoto #Fellnasen #dog #hund #lovemydog #lebenmithund #hunderunde
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 : https://pretalx.com/djangocon-africa-2025/cfp
Or learn more how you can support us here: https://2025.djangocon.africa/sponsor_us
Django + htmx tip:
Use hx-headers to pass Django’s CSRF token with all requests. This allows htmx to make data-modifying requests with methods like POST or PUT.
More details: https://django-htmx.readthedocs.io/en/latest/tips.html#make-htmx-pass-djangos-csrf-token
Hey Napfbefüller, #pause vorbei. Lass uns weiter laufen und die #Morgenrunde beenden
#django #MastodonDogs #dogs #dogsofmastodon #Mastodonrudel #hunde #Leonberger #leonbergers #hund #fotografie #Fotomontag #Mondog #lovemydog #lebenmithund #hunderunde
0.19.0 of `dj-angles` is released!
- inline templates: https://dj-angles.adamghill.com/en/latest/template-tags/template.html
- fix delay attribute in ajax-form
- output a stringified result from the `call` template tag
https://dj-angles.adamghill.com
https://codeberg.org/adamghill/dj-angles
https://pypi.org/project/dj-angles/
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.
2/6
Without formal training, the way I modeled physical distribution system #Infrastructure for utilities districts in my #Django app evolved significantly over time.
As I learned more about graph theory and simulation, I figured out how to model for both the physical structure and the logical aspects of their interconnection and behavior in various scenarios.
#GraphTheory #WaterInfrastructure #Modeling
1/6