Sep15-22Ag - @view-transition CSS - Gemini CLI module User - Deploy Railway - Logging Django +

Video thumbnail

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:

Actualizaciones en YouTube y blog

First up are the introductions and videos released about the online store:

  • 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

  1. Traducción: Traducir
    1. Vamos a crear las traducciones empleando ChatGTP y Gemini CLI.
  2. Traducción: Compilar archivos de traducción
    1. Generamos los archivos binarios de las traducciones.
  3. Traducción: Configuraciones
    1. Crearemos las configuraciones para el manejo de idiomas.
  4. Traducción: Formulario
    1. Vamos a implementar el formulario.
  5. Traducción: Problema con las conversiones de precios
    1. 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.
  6. Cupón: Modelo y Migración
    1. Crearemos la migración y el modelo para los cupones.
  7. Cupón: Dashboard
    1. Creamos el proceso administrativo para los cupones.
  8. Cupón: Dashboard, Generar
    1. Vamos a generar el cupón de manera automatizada.
  9. Cupón: Definir HTML en la pasarela de pago
    1. Vamos a crear el formulario para revisar el cupón en la pasarela de pago.
  10. Cupón: Clase auxiliar para revisar el cupón
    1. Vamos a crear una clase auxiliar para revisar el cupón.
  11. Cupón: Obtener cupón desde las vistas
    1. Vamos a recibir el cupón por GET.
  12. Cupón: Utilizar Clase auxiliar desde las vistas
    1. Vamos a utilizar la clase auxiliar para revisar el cupón.
  13. Cupón: Utilizar Clase auxiliar desde las vistas
    1. Vamos a utilizar la clase auxiliar para revisar el cupón.
  14. Cupón: Ocultar campos si el cupón está establecido
    1. 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

| 👤 Andrés Cruz

🇪🇸 En español