/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

nezhar.com
| | www.kencochrane.com
9.1 parsecs away

Travel
| |
| | joaoventura.net
6.8 parsecs away

Travel
| | [AI summary] The post is the first part of a tutorial series on how to set up internationalization and translation features in Django web projects.
| | jinyuz.dev
7.8 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"
| | www.paepper.com
33.7 parsecs away

Travel
| Unit testing your models in Django As a good developer, you write unit tests, of course. You will probably even write your tests before implementing your logic in a test-driven approach! However, when developing complex models which have interactions and foreign keys, writing tests can get messy and complicated. Say you want to test a model which has many dependencies to other models via foreign keys. To create an instance of your model, you first need to create all the other model instances which your m...