Update: actually, writing it out helped. The probl...
# 🔥-django-htmx
m
Update: actually, writing it out helped. The problem was not that the script was being replaced by HTMX, it was that HTMX was replacing the main_content div. I made sure that all responses returned have the main_content div and that worked like a charm! I will keep my question here in hopes it helps someone else.