Tweets 1 à 10 sur 368 pour “django”
- Just upgraded marcarea.com to Python 3.12 and Django 5.0 \o/ 09/12/2023 à 21:05 Permalien
- RT @djangoproject Django 5.0 released https://www.djangoproject.com/weblog/2023/dec/04/django-50-released/ 04/12/2023 à 16:01 Permalien
-
"Database generated columns⁽²⁾: Django & PostgreSQL" https://www.paulox.net/2023/11/24/database-generated-columns-part-2-django-and-postgresql/
> I’ve been thinking for a long time that database generated columns would be a killer feature for Django and now they will finally be available in Django 5.0 with the new `GeneratedField`. 25/11/2023 à 09:28 Permalien -
Something I keep forgetting: how to directly query the automatically generated table that manage a #django many-to-many relationship
Model.m2mfield.through.objects.all()
https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ManyToManyField.through 31/10/2023 à 15:41 Permalien -
"Building a blog in Django" https://til.simonwillison.net/django/building-a-blog-in-django
My blog in Django is almost as simple.
Overriding the default `content-type header` to "application/xml; charset=utf-8" is a cool trick to avoid triggering a browser download when rendering the XML feed! 29/10/2023 à 11:11 Permalien -
"Django things you want with HTMX" https://www.bitecode.dev/p/django-things-you-want-with-htmx
> Debug 500 like it's 1999 26/10/2023 à 16:40 Permalien - "Why your Django models are fat" https://codeinthehole.com/lists/why-your-models-are-fat/ I have always embraced fat models but I've seen a new way of organizing code, and it's not bad at all… 28/04/2023 à 19:05 Permalien
-
RT AdamChainz: Great post showing a practical use of an async #Django view
Running tasks concurrently in Django asynchronous views https://fly.io/blog/running-tasks-concurrently-in-django-asynchronous-views/ via https://twitter.com/MariuszFelisiak/status/1646761191237115904 19/04/2023 à 13:05 Permalien - "Test factory functions in Django" https://lukeplant.me.uk/blog/posts/test-factory-functions-in-django/ 06/04/2023 à 18:29 Permalien
-
> In my experience, the far more pernicious way to get N+1 is serializers (Django REST)
https://news.ycombinator.com/item?id=35313565 (Ban 1+N in Django) 27/03/2023 à 12:02 Permalien