mirror of
https://github.com/django-components/django-components.git
synced 2025-07-16 04:54:59 +00:00
Add setting to isolate components' context by default
This commit is contained in:
parent
93facba53e
commit
4da76c178b
4 changed files with 130 additions and 50 deletions
|
@ -17,5 +17,9 @@ class AppSettings:
|
|||
def TEMPLATE_CACHE_SIZE(self):
|
||||
return self.settings.setdefault("template_cache_size", 128)
|
||||
|
||||
@property
|
||||
def ISOLATE_COMPONENT_CONTEXT(self):
|
||||
return self.settings.setdefault("isolate_component_context", False)
|
||||
|
||||
|
||||
app_settings = AppSettings()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue