Eduardo Zepeda's latests posts
5 cool React libraries you should know about
- react
After several weeks posting about Django I wrote a short post about React, about libraries, because man does not live by Python alone. These are some of the libraries that I consider most useful in React. For obvious reasons are excluded React-router, Redux and others too well kn...
Read more
What is Django Generic Foreignkey for?
- django
- databases
You want to use Django to relate one model to another using a foreign key, but the model you want to relate is a different one for each database entry. Django offers a solution to your problem, a Django generic foreign key called genericForeignKey and the ContentType model, which...
Read more
What does the ContentType application do in Django?
- django
- databases
Did you know that Django keeps track of each of the models you create for your project in a model called ContentType? Read on to learn about it.Sorry for taking so long to write! Ive been busy moving the frontend of my blog to Frontity, a React framework for Wordpress, and also m...
Read more
How to create a command in django?
- django
You have used Django before, havent you? So, you already used some Django command, it could have been makemigrations, migrate, startproject, startapp or some other. But have you ever created any? Maybe you havent. Read on to learn how.How to create a command in djangoTo create a ...
Read more
My Digital Ocean review, analysis and my experience as a user
- software architecture
- opinion
Ive been using Digital Ocean for my personal projects for several years, so Let me tell how it has been so far and what can of services you can find there.Droplets or VPS on Digital OceanDroplets are my favorite resource in Digital Ocean. Droplets are virtual servers that are ren...
Read more
How to scale a Django app to serve one million users?
- software architecture
- django
Wish your Django app could handle a million hits? This post is a compilation of articles, books, and videos Ive read on how to take a Django application to its maximum capabilities, Ive even implemented some of these recommendations myself.Its also a good time to remember that if...
Read more
Javascript vs Python which one is better for you?
- javascript
- python
If youve used only Python or only Javascript, youre probably a little curious to know what the other one looks like. Ive used both and I can tell you a bit about the differences and some things in common that both languages have, so you can find the best one for you.I also wrote ...
Read more
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 didnt seem clear enoug...
Read more
Nginx keepalive, gzip, http2: better performance on your website
- linux
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, Ill tell you how below. In this post I talk about the follo...
Read more