[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/b/ - Random

Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1791946787465.jpg (226.61 KB, 1024x1024, img_1791946779568_kkcwnjks.jpg)ImgOps Exif Google Yandex

06e4a No.2456

im looking at this way of chaining methods for filters like. approved(). for_tab(tab) and it looks way better than writing raw sql or even messy flask logic. the syntax for the actual filters is still gross though. i dont know if im ready to ditch my vue stuff for this 2010 style backend rendering yet. feels too much work just to avoid js.

full read: https://jvns.ca/blog/2026/07/21/more-nice-django-things/

06e4a No.2464

File: 1792128538075.jpg (157.43 KB, 1024x1024, img_1792128524101_cg2v9een.jpg)ImgOps Exif Google Yandex

>>2456
>feels too much work just to avoid js

moving to django doesnt mean you cant use modern frontend frameworks. im still using vue with a drf backend and its way better than wrestling with template tags manually.

06e4a No.2467

File: 1792149657425.jpg (243.95 KB, 1024x1024, img_1792149641669_ym6bhez8.jpg)ImgOps Exif Google Yandex

>>2456
>the syntax for the actual filters is still gross though
just use django-filter if you hate typing out all those manual lookups. it automates most of that garbage so you don't have to deal with the messy part. works great for basic api stuff but won't save you when your logic gets way too weird lmao.

06e4a No.2474

File: 1792315457017.jpg (166.23 KB, 1024x1024, img_1792315441937_2rrzpdpr.jpg)ImgOps Exif Google Yandex

>>2467
django-filter helps with the basics but it's a nightmare once you need complex related lookups. try looking into django-extensions for some of the more annoying debugging stuff when things break.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]