Skip to content

Commit

Permalink
Add default value for TEMPLATE_CACHE_SIZE to app_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
rbeard0330 authored and rbeard0330 committed Feb 15, 2021
1 parent 4b10761 commit 20dbf58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions django_components/app_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ def AUTODISCOVER(self):
def LIBRARIES(self):
return self.settings.setdefault("libraries", [])

@property
def TEMPLATE_CACHE_SIZE(self):
return self.settings.setdefault("template_cache_size", 128)


app_settings = AppSettings()
app_settings.__name__ = __name__
Expand Down

0 comments on commit 20dbf58

Please sign in to comment.