Sep15-22Ag - @view-transition CSS - Gemini CLI module User - Deploy Railway - Logging Django +
Content Index
Welcome to another week of updates.
Today I'm going to talk about all the content I uploaded during the week of September 15-22.
This week I wasn't able to upload a new community book, so we're sticking with the ones from previous weeks:
- https://academy.desarrollolibre.net/libro/laravel
- https://academy.desarrollolibre.net/libro/primeros-pasos-con-django-5
- https://academy.desarrollolibre.net/libro/primeros-pasos-laravel-livewire
- https://academy.desarrollolibre.net/libro/primeros-pasos-con-bootstrap
- https://academy.desarrollolibre.net/libro/primeros-pasos-con-electronjs
- https://academy.desarrollolibre.net/libro/primeros-pasos-con-fastapi/
- https://academy.desarrollolibre.net/libro/componentes-y-animaciones-personalizadas-en-flutter/
Actualizaciones en YouTube y blog
First up are the introductions and videos released about the online store:
- https://academy.desarrollolibre.net/libro/crea-tu-tienda-en-linea-con-django/
- https://academy.desarrollolibre.net/free/crea-tu-tienda-en-linea-con-django

- How we created CRUD for Django, in this case applied to the store.
- The blog module for users.
The blog isn't very elaborate, because that's not the purpose. It's more of an excuse, since when we want an online store, a good idea is also to implement a blog to position items and then direct them to the store.
CSS Scroll Effects
An interesting topic this week was CSS View Transitions, which allows us to automatically add animated scroll navigations.
This is part of another CSS API that allows transitions between pages with just one rule:

@view-transition CSS: Scroll Navigation with Automatic Animations - https://youtu.be/-R5w8-TM_J4
Artificial Intelligence and Professions
Another article discussed the 10 professions that artificial intelligence could replace.
As always, the most at risk are monotonous, simple, or very straightforward tasks:
- Translators
- Historians
- Sales representatives
- Writers and authors
- AI can do a lot in these fields, as it is capable of processing and querying huge databases.

"These are the 10 professions that artificial intelligence could soon replace" - https://youtu.be/9Sa7Xuuc5Rs
Flutter: Login, Registration, and Provider with Gemini CLI
In another video, I explain how to create a complete login, registration, and API module in Flutter with Provider with Gemini CLI.
Here, as I always say, the important thing is to use AI as a supporting tool, not as a generator of complete, unsupervised applications.
There always needs to be a programmer behind it who understands the code, makes corrections, and adapts it to the application's business rules.

I generated a COMPLETE user module with Gemini CLI: Login, Registration, API, provider 1 min Flutter https://youtu.be/HFwbMFmuhCM
AI and juniors in programming
Along the same lines, I published an article titled "There's No Future Without Juniors."
The main message is that entry-level jobs are precisely the most replaceable by AI.
I quote a key phrase from an interview with an Amazon representative:
“Replacing junior employees with AI is one of the dumbest things I’ve ever heard.”

Replacing junior employees with AI is "one of the dumbest things I've ever heard" - https://youtu.be/vqV7_Oq7wlk
Application Deployment
Another article and video explain how I'm deploying applications to the Railway service.
This service is "free" with monthly credits and allowed me to publish:
- FastAPI
- Django
- Flask
- Laravel Livewire Store
- CodeIgniter
It's a very simple process, and I'll go into more detail about each technology in upcoming videos.

Railway, deploy your applications in PHP, Python web, Node... and on Heroku for FREE - https://youtu.be/QDFaivAeW9M
Django: Logs and Error Handling
I also posted about how to implement logs in Django, which is useful in the online store for detecting errors in production, especially in the payment gateway.
In Laravel, it's more straightforward, but in Django, we need a few additional steps: importing a package, registering configurations, and creating a log file.
I explain all of this step by step in the article and video.

Logging in Django .log step by step - https://youtu.be/MrYhImyqt5w
Django Store Course and Book
In the course of the shop we saw how to handle translations in Django:
- Define texts with trans or gettext.
- Use commands to generate .po files.
- Rely on AI for translation.
- Compile the files into .mo binaries.
- Enable language switching with middleware and routes.
- With this, we can easily change the application's language.
We are also moving forward with the implementation of discount coupons:
- If the coupon is invalid → a message is displayed and the user remains on the same page.
- If the coupon is valid → the payment buttons are enabled.
- We can even allow the user to pay directly with a "Pay Now" button without a coupon.
Django - Tienda en línea
Varios cambios
- Traducción: Traducir
- Vamos a crear las traducciones empleando ChatGTP y Gemini CLI.
- Traducción: Compilar archivos de traducción
- Generamos los archivos binarios de las traducciones.
- Traducción: Configuraciones
- Crearemos las configuraciones para el manejo de idiomas.
- Traducción: Formulario
- Vamos a implementar el formulario.
- Traducción: Problema con las conversiones de precios
- Hacemos un ajuste con los precios de los productos que al pasar a español, los números flotantes pasan a tener su separación decimal con comas en vez de puntos.
- Cupón: Modelo y Migración
- Crearemos la migración y el modelo para los cupones.
- Cupón: Dashboard
- Creamos el proceso administrativo para los cupones.
- Cupón: Dashboard, Generar
- Vamos a generar el cupón de manera automatizada.
- Cupón: Definir HTML en la pasarela de pago
- Vamos a crear el formulario para revisar el cupón en la pasarela de pago.
- Cupón: Clase auxiliar para revisar el cupón
- Vamos a crear una clase auxiliar para revisar el cupón.
- Cupón: Obtener cupón desde las vistas
- Vamos a recibir el cupón por GET.
- Cupón: Utilizar Clase auxiliar desde las vistas
- Vamos a utilizar la clase auxiliar para revisar el cupón.
- Cupón: Utilizar Clase auxiliar desde las vistas
- Vamos a utilizar la clase auxiliar para revisar el cupón.
- Cupón: Ocultar campos si el cupón está establecido
- Vamos a ocultar algunos campos de formulario dependiendo de si el cupon está o no establecido.
I agree to receive announcements of interest about this Blog.
Community Books and Django Online Store Course/Book YouTube/Blog @view-transition in CSS - 10 Professions Replaced by AI - Gemini CLI - Generating a User Module - Deploying to Railway - Logging in Django Django Store Course/Book, Translations, and a Coupon System