/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
| | jinyuz.dev
4.7 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"
| | gist.github.com
4.9 parsecs away

Travel
| | reverse m2m widget in django admin. GitHub Gist: instantly share code, notes, and snippets.
| | keepsimple.dev
4.1 parsecs away

Travel
| | In this tutorial we will be setting up authentication for our GeoIP API
| | www.laceyhenschel.com
28.5 parsecs away

Travel
| One of the things I hear people say about Django is that it's a "batteries included" framework, and Django REST Framework is no different. One of the most powerful of these "batteries" is the ModelViewSet class, which is more of a "battery pack," in that it contains several different batteries. If you have any experience with Django's class-based views, then DRF's viewsets will hopefully look familiar to you.