Eduardo Zepeda's latests posts
Python tortoise ORM integration with FastAPI
- fastapi
- databases
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: djang...
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: (adsbygoogle = window.adsbygoogle || []).push({}); .nc { margin: 2rem 0; } .banner{ width: 728px; height: 90px; } .google-ads-container-8672022193{ background-color: transparent; widt...
Read more
Periodic Tasks with Celery and Django
- django
In addition to creating asynchronous tasks, celery also allows you to create periodic tasks, which are executed from time to time. This can be quite useful to give maintenance to the database from time to time, to send marketing or shopping cart recovery emails, perhaps even to e...
Read more
How to use Django Framework asynchronously using Celery
- django
Celery, in combination with Django serve to solve a problem: the lack of asynchrony in our application. Sending an email, processing some file or responding to a third party service will keep our execution waiting for the task to finish and, as a consequence, our user waiting.Usi...
Read more
Login using Django Rest Framework DRF
- django
Almost all complex Django applications need views for Login, Logout, reboot and password change, as well as user registration. However, both Django and Django REST Framework (DRF) are completely agnostic about their implementation, and delegate the responsibility for these functi...
Read more
React memo, useMemo and useCallback to avoid React renderings
- react
We can use react memo and useCallback to prevent a component from being rendered, uselessly, multiple times by memoization. If you dont know what memoization is or dont understand what the react components, useCallback and memo are for, I have a post where I explain Reacts useCal...
Read more
React useCallback, useMemo and memo, differences
- react
The useCallback, useMemo and memo functions are used to optimize React applications using memoization, avoiding useless renderings, each with their differences, similarities and use cases. These three functions should not be used indiscriminately, but only in those situations whe...
Read more
Mexico Postal codes API with Django
- django
Do you need to get the data associated with a postal code in Mexico for your Django application? I wrote a small library called django-postalcodes-mexico that downloads postal codes from SEPOMEX (Méxicos Postal Codes official site) and creates an API endpoint that allows you to q...
Read more
Django and htmx, modern web apps without writing JS
- django
- htmx
The other day I was testing a library called htmx, which promises to make web creation much easier, yes, another library, but with the difference that this one doesnt need you to write Javascript (JS) and it also combines quite well with Django. Htmx bases all its operation on wr...
Read more