Explore >> Select a destination


You are here

vxlabs.com
| | jinyuz.dev
2.5 parsecs away

Travel
| | Often, I forget how to display the raw SQL of a queryset in Django. This is a quick and easy example of how to do it from django.contrib.auth.models import User qs = User.objects.all() print(qs.query) SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."date_joined" FROM "auth_user"
| | alexgaynor.net
3.9 parsecs away

Travel
| | [AI summary] Alex, a software resilience engineer, demonstrates how to implement a read-only field in Django by subclassing FileField and modifying the widget rendering and validation logic.
| | schinckel.net
2.7 parsecs away

Travel
| | [AI summary] The article explains how to create and use database views in PostgreSQL, including their syntax, differences between UNION and UNION ALL, and integration with Django models for read-only data access.
| | sam.hooke.me
15.1 parsecs away

Travel
| The home page of Sam Hooke.