Act18-25Ag - CKEditor Django - Gemini CLI vs Agent - The Worst of Flutter - 10 Best Prompts +

Video thumbnail

Welcome to another week. I'm going to comment on all the updates that occurred during the week of September 25th to September 1st.
As always, we start by reviewing the community versions of the books, which are completely free. This week it's Electron's turn.

Also, remember that the other community books released weeks ago are now available.

On the other hand, the Early Access version of the course and the book is now available. For now, only the book can be accessed through the app's viewer; I haven't generated the PDFs yet. Access, as always, from academia.desarrollado.net, in the courses or books section (it's recommended to do so directly from the app):

For now, it's at a special price, as once it's finished, it will go to full price, just like the LW one (although this one will be a bit cheaper).

YouTube and Blog

Now we move on to updates on YouTube and the blog.

1. CKEditor with Django

Let's see how you can integrate CKEditor into Django. There are several ways:

 Incorporar CKEditor 5 en Django 3 FORMAS - https://youtu.be/JOL3JVLvawk

The traditional way, installing JavaScript.

Using the version available via PIP, which is simpler.

Once installed, configure the necessary routes and define the corresponding field in your models so that instead of a TextField, it's a CKEditor type.

2. Gemini CLI vs. Gemini Agent

Comparison between Gemini CLI and Gemini Agent:

Gemini CLI: Installed at the operating system level and used from the terminal. It can be used, for example, to generate code directly in the project.

Gemini Agent: A graphical interface with dialogs for interacting with code.

Gemini Agent VS Gemini CLI: ¿Cuál es mejor para programar? 2 - https://youtu.be/9jRnCXKy8tY

It's not that one is better than the other; they simply serve different purposes.

3. Opinion: What I like least about Flutter

I'll comment on a personal point: what I like least about Flutter is its updates.
The problem is that, being such an open technology and dependent on Android, it forces us to worry about:

  • Android updates.
  • Flutter.
  • Dart.
  • Dependencies.

When something fails, the entire project can be affected, unlike other technologies like Laravel, where we basically only worry about the project itself and not so many external dependencies.

Lo que MENOS me gusta de Flutter son "Las Actualizaciones" + Concejos Curiosidades - https://youtu.be/txisiBEbE1M

4. Ten Tricks for Better Prompts

  • Quick list of recommendations:
  • Be specific.
  • Make partial changes.
  • Define the output format.
  • Use examples.
  • Establish a role.
  • Control the length.
  • Reword when necessary.

5. Security: JavaScript Injection in Livewire Events

I'll explain why we can't inject JavaScript into events (for example, in an onClick).
This is due to browser security measures to prevent attacks. Therefore, we can't do this in Livewire either.

6. Camera Collision Issue

On the secondary channel, I explain how to resolve the collision issue on game cameras, which causes blurring or visual flickering when two objects get too close.

¿Por qué SALTA la CÁMARA (Camera Jump) en Unreal? Do Collision Test - https://youtu.be/f9NIO-Rzhck

7. Duolingo on the Stock Market

We analyze Duolingo's stock market crash, which shows that the app itself isn't that valuable: what's really important is its user community.

GPT 5 puts Duolingo in check with a language app created in record time - https://youtu.be/Tv9oCbGzWFg

Course and Book: Django Shopping

  • We're moving on to updates for the Django Shopping project, now available in early access.
  • We're working on the online store section:
  • We've improved the integration with payment gateways like Stripe.
  • We've added logic to handle statuses like "cancelled" or "loading."
  • We've created generic models for products, reusing what we learned with the "book" entity.
  • This allows for greater modularity: you can now define a generic product and specify whether it's a book, a desk, a mouse, or a computer. This makes the system more flexible and reusable.

 

Django - Tienda en línea

Tienda: Libros

  1. Manejo de errores: Página de error
    1. Vamos a mostrar las páginas de errores
  2. Diseño del template de pago
    1. Aplicamos un sencillo CSS en base a flex para la pasarela de pago.
  3. Corrección de errores en pasarela de pago de PayPal
    1. Hablaremos sobre unos problemas en el template _paypal y llamados de constructores
  4. Payment: Problemas con los tipos de retornos
    1. Hablamos sobre que, cada retorno en la vista de pago, tiene que tener la verificación sobre el tipo que tiene que retornar.
  5. Payment: Método auxiliar para las respuestas json/templates
    1. Vamos a implementar un método de ayuda que usamos al momento del retorno de la respuesta del pago en la vista, dependiendo de si la respuesta tiene queser un json o una redirección.
  6. Stripe: Url de cancelado
    1. Vamos a implementar la URL de cancelado en Stripe
  7. Módulo de usuario para ver los pagos realizados
    1. Vamos a mostrar la implementación de un módulo para pagos realizados.
  8. Extra: Loading al dar click en la pasarela de pago
    1. Definimos un loading al darle click al botón de PayPal.
  9. Aplicar estilo al loading
    1. Damos un rediseño al efecto de loading.
  10. Resumen 

Tienda: Producto

  1. Modelo: Tipo producto
    1. Entidad para especificar el tipo de producto.
  2. Modelo: Producto
    1. Entidad de tipo genérica para los productos.
  3. Ejecutar migraciones
    1. Generamos y ejecutamos la migración para los productos.
  4. Dashboard: CRUD
    1. Presentamos el CRUD para el producto y el tipo.
  5. Store: Listado y detalle
    1. Vamos a mostrar la página de listado y detalle para la tienda del producto.
  6. Extra: Modelo Abstracto tipo producto
    1. Creamos una clase modelo tipo producto que podamos heredar para crear un nuevo producto.
  7. Store: Pasarelas: Vista
    1. Vamos a mostrar la implementación de la pasarela de pago en la vista. 

I agree to receive announcements of interest about this Blog.

Community versions, Electron, and Django Shopping now available Blog/YouTube: Django CkEditor - Gemini CLI vs. Agent - The Worst of Flutter - 10 Best Prompts Django Shopping Course/Book

| 👤 Andrés Cruz

🇪🇸 En español