cover of episode #484: From React to a Django+HTMX based stack

#484: From React to a Django+HTMX based stack

2024/11/5
logo of podcast Talk Python To Me

Talk Python To Me

AI Deep Dive AI Chapters Transcript
People
M
Michael Kennedy
S
Sheena O'Connell
Topics
Sheena O'Connell: 在本文中,我分享了将一个基于React和Django的应用程序迁移到纯Django+HTMX堆栈的经验。我解释了为什么我选择HTMX,以及它如何解决传统前端开发中复杂性和效率低下等问题。我详细描述了迁移过程,包括技术选择、挑战和解决方案,以及如何提高团队生产力,特别是对于初级开发人员。我还讨论了HTMX与其他工具(如Alpine.js和Django template partials)的结合使用,以及如何改进测试策略。最后,我分享了对HTMX未来发展趋势的看法,以及它对Web开发行业的影响。 Michael Kennedy: 在本期节目中,我们与Sheena O'Connell讨论了她将一个基于React和Django的应用程序迁移到纯Django+HTMX堆栈的经验。Sheena详细解释了HTMX如何简化开发流程,提高开发效率,并降低了团队开发的复杂性,特别是在团队成员技能水平参差不齐的情况下。我们还讨论了HTMX与其他工具的结合使用,以及如何改进测试策略。

Deep Dive

Chapters
Introduction to HTMX and its benefits over traditional front-end frameworks like React, focusing on simplicity and reducing context switching.
  • HTMX is a small JavaScript library that enhances HTML with additional attributes for modern interactivity.
  • It reduces complexity by keeping development within a single context, avoiding the need to switch between front-end and back-end environments.
  • HTMX allows for server-rendered HTML fragments, simplifying the development process and making it more accessible for junior developers.

Shownotes Transcript

Have you heard about HTMX? We've discussed it a time or two on this show. We're back with another episode on HTMX, this time with a real-world success story and lessons learned. We have Sheena O'Connell on to tell us how she moved from a React-Django app to pure Django with HTMX.

Episode sponsors

Posit) Bluehost) Talk Python Courses)

Links from the show

Sheena O'Connell: sheenaoc.com) An HTMX success story essay: sheenaoc.com) Sheena's HTMX Workshop: prelude.tech - discount code: talk_python)

Talk Python's HTMX Courses HTMX + Flask course: training.talkpython.fm) HTMX + Django course: training.talkpython.fm) Build An Audio AI App course: training.talkpython.fm)

HTMX: htmx.org) Playwright: playwright.dev) django-template-partials: github.com) Michael's jinja_partials: github.com) django-guardian: github.com) Talk Python Courses HTMX Example: training.talkpython.fm/courses/all) Alpine.js: alpinejs.dev) David Guillot SaaS video: youtube.com) awesome-htmx: github.com) Guild of Educators: guildofeducators.org) The big rewrite song: youtube.com) Watch this episode on YouTube: youtube.com) Episode transcripts: talkpython.fm)

--- Stay in touch with us --- Subscribe to us on YouTube: youtube.com) Follow Talk Python on Mastodon: *talkpython) Follow Michael on Mastodon: *mkennedy)