/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

www.django-rest-framework.org
| | alexgaynor.net

[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.
2.8 parsecs

Travel
| |
| | jinyuz.dev

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"
4.7 parsecs

Travel
| |
| | gist.github.com

reverse m2m widget in django admin. GitHub Gist: instantly share code, notes, and snippets.
4.9 parsecs

Travel
| |
| | jkatz.github.io

An example of how to perform hybrid search with PostgreSQL and pgvector over vector data.
30.3 parsecs

Travel
|