djhtmx 1.2.9__tar.gz → 1.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {djhtmx-1.2.9 → djhtmx-1.3.0}/CHANGELOG.md +6 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/PKG-INFO +1 -1
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/__init__.py +1 -1
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/utils.py +4 -8
- {djhtmx-1.2.9 → djhtmx-1.3.0}/.gitignore +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/LICENSE +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/MANIFEST.in +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/README.md +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/pyproject.toml +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/apps.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/command_queue.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/commands.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/component.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/consumer.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/context.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/exceptions.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/global_events.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/introspection.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/json.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/management/commands/htmx.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/middleware.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/query.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/repo.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/settings.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/static/htmx/2.0.4/ext/idiomorph-ext.min.js +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/static/htmx/2.0.4/ext/ws.js +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/static/htmx/2.0.4/htmx.amd.js +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/static/htmx/2.0.4/htmx.cjs.js +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/static/htmx/2.0.4/htmx.esm.d.ts +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/static/htmx/2.0.4/htmx.esm.js +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/static/htmx/2.0.4/htmx.js +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/static/htmx/2.0.4/htmx.min.js +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/static/htmx/django.js +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/templates/htmx/headers.html +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/templates/htmx/lazy.html +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/templatetags/__init__.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/templatetags/htmx.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/testing.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/tracing.py +0 -0
- {djhtmx-1.2.9 → djhtmx-1.3.0}/src/djhtmx/urls.py +0 -0
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.3.0] - 2026-01-07
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- **HTMX Module Discovery**: Improved module discovery mechanism to use `find_spec` instead of try/except for checking module existence. This allows ImportErrors from within HTMX modules to propagate properly, preventing silent failures and making debugging easier. Previously, import errors from within the module itself were silently caught, masking real bugs.
|
|
14
|
+
- Removed warning messages about missing HTMX modules for cleaner logging
|
|
15
|
+
|
|
10
16
|
## [1.2.9] - 2026-01-07
|
|
11
17
|
|
|
12
18
|
### Added
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import importlib
|
|
2
|
-
import
|
|
2
|
+
import importlib.util
|
|
3
3
|
import pkgutil
|
|
4
4
|
import typing as t
|
|
5
5
|
from urllib.parse import urlparse
|
|
@@ -131,11 +131,10 @@ def autodiscover_htmx_modules():
|
|
|
131
131
|
"""
|
|
132
132
|
for app_config in apps.get_app_configs():
|
|
133
133
|
module_name = f"{app_config.module.__name__}.htmx"
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
except ImportError:
|
|
137
|
-
logger.warning("Could not import %s", module_name)
|
|
134
|
+
spec = importlib.util.find_spec(module_name)
|
|
135
|
+
if spec is None:
|
|
138
136
|
continue
|
|
137
|
+
module = importlib.import_module(module_name)
|
|
139
138
|
if hasattr(module, "__path__"):
|
|
140
139
|
# If it's a package, recursively walk it importing all modules and packages.
|
|
141
140
|
for info in pkgutil.walk_packages(module.__path__, prefix=module_name + "."):
|
|
@@ -143,6 +142,3 @@ def autodiscover_htmx_modules():
|
|
|
143
142
|
# `walk_packages` only imports packages, not modules; we need to import them
|
|
144
143
|
# all.
|
|
145
144
|
importlib.import_module(info.name)
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
logger = logging.getLogger(__name__)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|