Articles in the software category

  1. Vagrant, Ansible and Posgtresql

    How to setup Vagrant, Ansible and Postgresql

    In this story I’ll be setting up Vagrant with a Postgresql server provisioned by Ansible. The setup will be pretty bare bone, so don’t use it as a blueprint for a production setup.

    Setup Vagrant

    Create a file named ‘Vagrantfile’ in …

    Tagged as : vagrant deployment
  2. 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

Page 2 / 2