Minify HTML
This commit is contained in:
parent
7cbdda9397
commit
0f328aff0a
3 changed files with 4 additions and 1 deletions
|
@ -28,6 +28,7 @@ django-permissions-policy==4.18.0
|
||||||
django-enforce-host==1.1.0
|
django-enforce-host==1.1.0
|
||||||
django-proxy==1.2.2
|
django-proxy==1.2.2
|
||||||
wagtail-lite-youtube-embed==0.1.0
|
wagtail-lite-youtube-embed==0.1.0
|
||||||
|
django-minify-html==1.7.1
|
||||||
|
|
||||||
# DRF OpenAPI dependencies
|
# DRF OpenAPI dependencies
|
||||||
uritemplate
|
uritemplate
|
||||||
|
|
|
@ -38,7 +38,7 @@ class SearchPageTestCase(TestCase):
|
||||||
|
|
||||||
self.assertEqual(search_input.attrs["name"], "q")
|
self.assertEqual(search_input.attrs["name"], "q")
|
||||||
self.assertEqual(search_input.attrs["hx-get"], "results/")
|
self.assertEqual(search_input.attrs["hx-get"], "results/")
|
||||||
self.assertEqual(search_input.attrs["value"], "")
|
self.assertEqual(search_input.attrs.get("value", ""), "")
|
||||||
|
|
||||||
self.assertEqual(len(soup.select(search_input.attrs["hx-target"])), 1)
|
self.assertEqual(len(soup.select(search_input.attrs["hx-target"])), 1)
|
||||||
self.assertEqual(len(soup.select(search_input.attrs["hx-indicator"])), 2)
|
self.assertEqual(len(soup.select(search_input.attrs["hx-indicator"])), 2)
|
||||||
|
|
|
@ -79,6 +79,7 @@ INSTALLED_APPS = [
|
||||||
"wagtail_2fa",
|
"wagtail_2fa",
|
||||||
"django_otp",
|
"django_otp",
|
||||||
"django_otp.plugins.otp_totp",
|
"django_otp.plugins.otp_totp",
|
||||||
|
"django_minify_html",
|
||||||
"health_check",
|
"health_check",
|
||||||
"health_check.db",
|
"health_check.db",
|
||||||
"health_check.cache",
|
"health_check.cache",
|
||||||
|
@ -99,6 +100,7 @@ MIDDLEWARE = [
|
||||||
"corsheaders.middleware.CorsMiddleware",
|
"corsheaders.middleware.CorsMiddleware",
|
||||||
"enforce_host.EnforceHostMiddleware",
|
"enforce_host.EnforceHostMiddleware",
|
||||||
"whitenoise.middleware.WhiteNoiseMiddleware",
|
"whitenoise.middleware.WhiteNoiseMiddleware",
|
||||||
|
"django_minify_html.middleware.MinifyHtmlMiddleware",
|
||||||
"django.middleware.common.CommonMiddleware",
|
"django.middleware.common.CommonMiddleware",
|
||||||
"django.contrib.sessions.middleware.SessionMiddleware",
|
"django.contrib.sessions.middleware.SessionMiddleware",
|
||||||
"django.middleware.csrf.CsrfViewMiddleware",
|
"django.middleware.csrf.CsrfViewMiddleware",
|
||||||
|
|
Loading…
Reference in a new issue