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

Template option for only caching loaders when not in DEBUG #3

Open
SmileyChris opened this issue Jul 16, 2024 · 0 comments
Open

Template option for only caching loaders when not in DEBUG #3

SmileyChris opened this issue Jul 16, 2024 · 0 comments

Comments

@SmileyChris
Copy link
Owner

SmileyChris commented Jul 16, 2024

Since Django 4.1, the cached loader is default, and includecontents follows the same pattern.
In debug though, it's probably nicer not to have the templates cached so you can edit them and actually see the updates without any code changes (which reloads the server).

A boolean loader option, callled cached_loader_unless_debug or something would be a nice way to allow this. See the dance that you normally have to do in #2

(Also it should probably be an error to specify this option if you're also passing loaders manually)

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

1 participant