Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jnns opened this issue Mar 14, 2014 · 1 comment
Open

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

jnns opened this issue Mar 14, 2014 · 1 comment

Comments

@jnns
Copy link
Contributor

jnns commented Mar 14, 2014

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants