May 2022

Python virtual environment

Introduction A virtual environment (or venv) is an isolated python environment in which you can use a specific Python version and install packages. At this point you may ask: Why should I create a virtualenv since I can already install everything I need? Imagine running several projects and maybe each of them requires a different …

Python virtual environment Read More »

django select_related

Introduction The Django select_related method allows you to speed up your querysets and therefore your application.In this post, I’ll show you how you can minimize database accesses and thus maximize the speed of your Django app. To learn how to use the select_related method we will see a very clear example. We will start from …

django select_related Read More »