jazzband / django-dbtemplates

Django template loader for database stored templates with extensible cache backend
https://django-dbtemplates.readthedocs.io
Other
253 stars 154 forks source link

Auto-populating templates does not work with cached.loader #48

Open jnns opened 10 years ago

jnns commented 10 years ago

With the following setup, auto-populating a database template (saving with empty content) does not work; the content is empty after all.

TEMPLATE_LOADERS = (
    'dbtemplates.loader.Loader',
    ('django.template.loaders.cached.Loader', (
        'django.template.loaders.filesystem.Loader',
        'django.template.loaders.app_directories.Loader',
    )),
)

The rationale behind this configuration is to retrieve templates from the database, if they are present (because they might need to be changed frequently). And load all filesystem based templates (that are also in version control) from the cache (which gets updated on app restarts only).

mpasternak commented 2 years ago

Hello, thanks for this problem report, is it still applicable?