Articles by Per Wagner Nielsen

  1. Django's select_related

    How does Django's select_related works and when should you use it?

    What problem does it solve?

    Django's select_related() solves the problem when you want to access related fields on a queryset. Assume the models:

    from django.db import models
    
    
    class Author(models.Model):
        name = models.CharField(max_length=250)
    
    
    class Book …
    Tagged as : django orm
  2. IP address and subnets (IPv4)

    This blog post will show how IP addresses work, what subnetting is.

    Binary to decimal for two byte numbers

    First, it can be beneficial to memorize the following table, which is just a list of binary digits.

    128  64  32  16  8  4  2  1
    

    It makes it easy to …

    Tagged as : network

Page 3 / 3