Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Jan 11, 2023
1 parent 3011e75 commit e9a1364
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ Using the following categories, list your changes in this order:

## [Unreleased]

### Added

- The built-in `idom` client will now automatically configure itself to debug mode depending on `settings.py:DEBUG`

### Changed

- The `component` template tag now supports both positional and keyword arguments.
Expand Down
2 changes: 2 additions & 0 deletions src/django_idom/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

from django.conf import settings
from django.core.cache import DEFAULT_CACHE_ALIAS, BaseCache, caches
from idom.config import IDOM_DEBUG_MODE
from idom.core.types import ComponentConstructor

from django_idom.defaults import _DEFAULT_QUERY_POSTPROCESSOR
from django_idom.types import Postprocessor, ViewComponentIframe


IDOM_DEBUG_MODE.set_current(getattr(settings, "DEBUG"))
IDOM_REGISTERED_COMPONENTS: Dict[str, ComponentConstructor] = {}
IDOM_VIEW_COMPONENT_IFRAMES: Dict[str, ViewComponentIframe] = {}
IDOM_WEBSOCKET_URL = getattr(
Expand Down

0 comments on commit e9a1364

Please sign in to comment.