mirror of
https://github.com/django-components/django-components.git
synced 2025-11-25 08:21:20 +00:00
Caching templates to allow for dynamic template generation
Co-authored-by: rbeard0330 <@dul2k3BKW6m>
This commit is contained in:
parent
3919943cbd
commit
07986c5216
9 changed files with 36 additions and 17 deletions
|
|
@ -10,7 +10,10 @@ if not settings.configured:
|
|||
TEMPLATES=[{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'DIRS': ["tests/templates/"],
|
||||
}]
|
||||
}],
|
||||
COMPONENTS={
|
||||
'TEMPLATE_CACHE_SIZE': 128
|
||||
},
|
||||
)
|
||||
else:
|
||||
settings.configure(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue