Closes #14735: Implement django-htmx (#14873)

* Install django-htmx

* Replace is_htmx() function with request.htmx

* Remove is_embedded() HTMX utility

* Include django-htmx debug error handler
This commit is contained in:
Jeremy Stretch
2024-01-22 12:09:15 -05:00
committed by GitHub
parent da085e60c2
commit 1d41a8ace5
9 changed files with 22 additions and 43 deletions

View File

@@ -2,6 +2,7 @@
{% load static %}
{% load helpers %}
{% load i18n %}
{% load django_htmx %}
<!DOCTYPE html>
<html
lang="en"
@@ -48,6 +49,7 @@
src="{% static 'netbox.js' %}?v={{ settings.VERSION }}"
onerror="window.location='{% url 'media_failure' %}?filename=netbox.js'">
</script>
{% django_htmx_script %}
{# Additional <head> content #}
{% block head %}{% endblock %}