Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

See also django-zen-queries https://github.com/dabapps/django-zen-queries , which can make it impossible for changes to a template to trigger queries.


I like Zen queries, but sometimes you just have to make queries in templates (e.g. when you want to check the user on the request object), or sometimes it's just convenient and there's nothing wrong with it (e.g. when you want to check the user on the request object).

Zen queries makes that use case impossible, sadly.


I don't actually use Zen queries myself, but it does have a queries_disabled template tag, which would allow for more specific control.


Came here to post just that. Really like zen queries




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: