Eduardo Zepeda's latests posts
How to create a history of products with django and redis?
- django
You are browsing an ecommerce site, a product catches your attention and you click to see it, but you are not convinced. You decide to see other options, click on a new product and, when you scroll to the bottom of the page, the page shows you the first product you saw under the ...
Read more
Django Annotate and aggregate explained
- django
- databases
The computer screen illuminated my face full of despair, I rubbed my head in despair, while I googled: “Django annotate”; one of the ORM functions that I could not understand. Did it happen to you too, I bet it did. I had already read the documentation but it didn&rsq...
Read more
Nginx keepalive, gzip, http2: better performance on your website
- linux and devops
Some months ago I was reviewing the Lighthouse settings for a website when I realized that it did not comply with certain recommendations, it was using http/1.1, no gzip compression, no cache. Later I fixed the problems, I’ll tell you how below. In this post I talk about th...
Read more
FastAPI tutorial, the best Python framework?
- docker
- fastapi
These last few days I have been testing a Python library that is becoming famous, FastAPI, a framework for creating APIs, such as REST APIs or RPC APIs. FastAPI promises to help us create fast APIs in a simple way, with very little code and with extraordinary performance, to supp...
Read more
Cookiecutter-django for configuring and deploying in Django
- django
- docker
I wrote the previous entries as an introduction for this week’s topic. In this post I’m going to explain about a cool tool for Django called cookiecutter-django. This tool for django allows you to generate projects that integrate docker, celery, mailhog, aws, gcp, and...
Read more
Get to know the basic Docker Compose commands
- docker
- linux and devops
Docker compose allows us to create applications with multiple containers, these containers will interact and will be able to see each other. To configure each of these services we will use a file in YAML format (also called YML). In this docker compose tutorial I show you some of...
Read more
The Most Useful and Basic Docker commands
- docker
- linux and devops
If you read the previous post where I explain what Docker is for you should already have a pretty simple idea of Docker, but I haven’t posted anything about the most basic docker commands. Here I explain them in detail, and also how to use volumes along with Dockerfiles to ...
Read more
What is Docker and what is it for?
- docker
If you have been using computers for a long time, you are probably more familiar with a virtual machine than a container, aren’t you? Docker solves the same problem as virtual machines but in a different way than the latter. But let’s take it one step at a time, let&r...
Read more
Understand inheritance types in Django models
- django
Sometimes, when we create Models in Django we want to give certain characteristics in common to several of our models. Probably, the first approach that would come to our mind would be to repeat the fields over and over again. This would bring us two problems; first, we are repea...
Read more