Eduardo Zepeda's latests posts
Django channels: consumers, environments and events
- django
Why Django channels? Because Django does not allow us to create applications with real-time communication natively. Django channels gives Django the ability to handle protocols that require a persistent connection, such as WebSockets, MQTT, chatbots, while keeping intact its inte...
Read more
Python vs Go Which is the Best Programming Language in 2024?
- go
- python
These last few months I have been learning go. How did it all start? Well, it started in a rather superficial way; I loved their mascot, yes, that’s really what it was all about. So after a brief mental debate, I decided to give the language a try. My first impression of it...
Read more
Graphql and django with graphene
- django
Normally graphql is used in conjunction with Nodejs and express, or other javascript frameworks, to create a graphql API in which to make queries, but graphql can also be implemented with Python frameworks such as Django. We are going to create a django application that serves co...
Read more
Types for React components with children
- javascript
- react
- typescript
Typescript requires that we specify the types for the different variables and function arguments in React. When they are native types it is not intrincate, but for React components it can be different. Here are 3 ways to specify types for React components that contain children as...
Read more
How to measure requests per second with locust in python?
- python
There are quite simple to use tools that allow us to audit the number of requests per second (rps) that a website supports, locust is one of them, it is made with Python and with a minimal configuration allows us to process information and obtain graphs instantly, and in real tim...
Read more
Facebook's plugin chat how to decrease its impact?
- javascript
The facebook chat plugin allows you to add a page button that connects to the chat of a facebook fanpage. But, as you know, facebook is monopolistic and the default installation loads the plugin first, making your website slower and affecting the web vitals indicators of the page...
Read more
OCR with tesseract, python and pytesseract
- python
- Artificial Intelligence
Python is super versatile, it has a giant community that has libraries that allow to achieve great things with few lines of code, Optical Character Recognition (OCR) is one of them, for that you just need to install tesseract and the python bindings, called pytesseract and you&rs...
Read more
Python tortoise ORM integration with FastAPI
- fastapi
One of the things I like most about Django is its ORM; one of the reasons why this framework is so popular . On the other hand FastAPI does not have an ORM and focuses solely on serving endpoints, showing agnostic on the basis of data. There are enough options ORM to python: djan...
Read more
The django admin panel and its customization
- django
One of the best features of django is that it has the django admin panel, a ready-to-use administration panel, with basic functions such as create, read, edit and delete models, users, groups and permissions. All ready to use just by setting up your application. But sometimes our...
Read more
Caching in Django REST Framework using memcached
- django
To use the cache in django, just follow three simple steps:
Install a caching system, be it redis, memcached, etc. Set the CACHES variable to the settings.py file of the project. Add the middleware necessary for django to return the cache before processing the view. Use the l...
Read more