Publico nuevo artículo: «Sala de espera para tareas largas en Django»
https://programadorwebvalencia.com/sala-de-espera-para-tareas-largas-en-django/
Colócate en la siguiente situación: cuando un usuario pulsa un botón de tu web, se ejecuta una funcionalidad que tarda mucho tiempo en dar el resultado (tal vez 10 minutos). Sin embargo, la experiencia sería nefasta si esperara todo ese tiempo sin poder hacer nada. Por ello, decidimos que la tarea se ejecute en segundo plano, permitiendo al usuario seguir navegando por toda la web sin restricciones. Cuando termine la funcionalidad, se le notificará el resultado con un mensaje emergente. Y no solo eso, además le daremos un feedback en tiempo real del progreso. Sencillo de decir y complejo de hacer. ¿Cómo podemos lograrlo?
#htmx #django #python #celery #huey #djangochannels #websockets #webdev
htmx
At a last @django Vienna Meetup this week I told someone about my stack and they were looking at me rather suspiciously and with disbelief as I said I build with just Django templates with a hint of #htmx ("never heard of"), in contrast to their full-blown Angular frontend app.
I can't stop thinking about it.
My next Modern frontend development with #Django, #HTMX, #Tailwind, #Playwright and #AlpineJS workshop is happening on 1 and 2 Feb. There are still some tickets left!
Learn more here: https://buff.ly/4hq7FUr
I also have some really cool bonuses for you.
Please share this with whoever might benefit!
My next "Modern frontend development with #Django, #HTMX, #Tailwind, #Playwright and #AlpineJS" workshop is this weekend!
Last chance to get your tickets!
I'm running another one in March if that one works better for you.
Really loving building web apps with #htmx instead of front-end frameworks like React. Does anyone have examples of complex sites made with #htmx that I can use for inspiration? https://htmx.org/examples/
Would it be possible to "toggle" requests with #htmx? Like, first click makes the request, second one doesn't, third one makes a new request and so on... 🤔
If you are a Python web developer and would like some frontend superpowers without the Javascript fatigue, consider joining my upcoming modern frontends learning sprint.