News for hackers. Stuff that matters.
Re:Taming the beast that is the Django ORM – An introduction by WesleyJohnson on Sunday September 01, 2024 @12:42AM (#41414356)
Pretty decent introduction. Will there be additional parts that cover how to create GROUP BY queries in the ORM? I find even seasoned Django developers struggle with these.

Also, I believe your code for creating an empty "data" migration is missing the "makemigration" command itself.

Re:Taming the beast that is the Django ORM – An introduction by vandahm on Sunday September 01, 2024 @02:20AM (#41414737)
> Will there be additional parts that cover how to create GROUP BY queries in the ORM? I find even seasoned Django developers struggle with these.

The last time I needed to do that, I ended up crying "uncle" and writing manual SQL. I wasn't happy about doing it, but I was happy that the framework left me an escape hatch so that I could.

Re:Taming the beast that is the Django ORM – An introduction by Too on Sunday September 01, 2024 @02:45AM (#41414830)
It's actually easy once you get it, it's just that they choose bizarre terminology that doesn't translate directly from sql. .values() and .annotate() ?!
Re:Taming the beast that is the Django ORM – An introduction by AbundantSalmon on Monday September 02, 2024 @01:09AM (#41422762)
Good topic for a second blog post/skill share. Are there any other interesting topics you can think of? I think I know so much but in it too deep to remember what is unusual. These came up with the recent onboarding of some new devs.

Thanks, I will update the data migration code!