It seems like that is the wrong behavior. I think the loaders should fail
loudly if they're missing configuration. Otherwise, it's unclear why
they're not used to find templates. I ran into this when writing a sample
loader and forgetting to specify "is_usable" as True on it.
Unless there's a use case for silently ignoring template loaders, I think
we should deprecate this behavior.
--
Ticket URL: <https://code.djangoproject.com/ticket/24235>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization
* needs_tests: => 0
* stage: Unreviewed => Accepted
Comment:
Yes.
--
Ticket URL: <https://code.djangoproject.com/ticket/24235#comment:1>
Comment (by prestontimmons):
I added a pull request here:
https://github.com/django/django/pull/4046
--
Ticket URL: <https://code.djangoproject.com/ticket/24235#comment:2>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/24235#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"5bc5ddd8b5d787c5e744efead184d46c55d03687"]:
{{{
#!CommitTicketReference repository=""
revision="5bc5ddd8b5d787c5e744efead184d46c55d03687"
Fixed #24235 -- Removed is_usable attribute from template loaders.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24235#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"5528e7da1a790aae8f6e0fd61ebccb2b87cbd97a" 5528e7d]:
{{{
#!CommitTicketReference repository=""
revision="5528e7da1a790aae8f6e0fd61ebccb2b87cbd97a"
Refs #24235 -- Removed unused is_usable attribute from base template
Loader.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24235#comment:5>