I Fixed One Bug… and Found Two More in Common Cartridge Export @ChuckSeverance
I Fixed One Bug… and Found Two More in Common Cartridge Export  @ChuckSeverance
Uploaded October 2026 | Updated November 2026, 14 hours ago
In this episode I’m cleaning up a few rough edges in Tsugi’s legacy Common Cartridge export path.

The first problem looks simple: headings from the old file-based lesson format are not being exported correctly.

The modern Common Cartridge exporter already knows how to represent headings, so the plan is straightforward — reuse that logic and teach the legacy exporter to do the same thing.

That part works quickly.

Then I inspect the exported cartridge and notice something else is missing:

the videos.

The headings are now correct, but the legacy exporter is not properly generating the video resources that should appear alongside them.

That turns into a second compatibility problem because my course sites use two different video systems:

some older courses use YouTube
newer Django for Everybody material uses Kaltura

So the exporter needs to preserve both behaviors.

For Kaltura-backed lessons, Tsugi has to use the configured Kaltura URL pattern and interpolate the video ID correctly.

For courses without Kaltura configured, the legacy YouTube behavior still needs to work exactly as before.

After updating the exporter, I test both paths.

The Kaltura videos appear correctly as web links in the Common Cartridge.

Then I export a Python for Everybody module using the older YouTube setup and verify that those YouTube links are still generated correctly too.

Finally, I import both cartridges back into Tsugi.

The headings survive.

The Kaltura links work.

The YouTube links work.

And importing two different cartridges also gives me another chance to exercise the duplicate-detection work from earlier sessions.

This is one of those useful development sessions where the original feature is small, but testing it forces me to exercise a much larger portion of the system.

That repeated round-trip testing is turning into a kind of continuous QA for the Common Cartridge work: every new feature makes me touch the exporter, importer, navigation, lesson rendering, duplicate handling, and course setup again.
I Fixed One Bug… and Found Two More in Common Cartridge ExportAI with Dr. Chuck: Turning Tsugi Into a Real LMS with AIDjango for Everybody – Week 7: First Solo Assignment and Understanding Web ServersReset Course Content Before Import — A Moodle Idea I Had to StealDJ 05.03 Document Object Model vs HTML Source Code (13:34)Installing Python on Windows-11AI Coding with Dr. Chuck: Building the Org UI to Prove the Data Model WorksMid Ohio - Tristan Day 2 - 2026-04-12 - RacingDjango for Everybody Week 14: Many-to-Many Relationships, Comments, and the FinalDjango Midterm Preview: What to Expect and How to Prepare | Dr. Chuck – Week 10Python for Everybody with AI – New Course Starts January 2027 | Dr. ChuckGoodbye GIFT — Automatically Converting Legacy Quizzes to QTI
Chuck Severance |

I Fixed One Bug… and Found Two More in Common Cartridge Export

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER