|
You are here |
www.kencochrane.com | ||
| | | | |
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" | |
| | | | |
schinckel.net
|
|
| | | | | [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. | |
| | | | |
paulosman.me
|
|
| | | | | ||
| | | | |
robr.dev
|
|
| | | Three things from this week. This week I've been following a lot of random threads again. Here are a few of them. Octoprint If you use a 3d printer you might be interested in Octoprint. It runs on a computer connected to the printer and handles a bunch of features like managing prints sent to the printer, tracking progress, or (with a webcam) streams video of the printer while it works. | ||