#33839: Support pathlib.Path in loaders' get_template().
---------------------------------+-----------------------------------------
Reporter: simon klemenc | Owner: simon klemenc
Type: New feature | Status: closed
Component: Template system | Version: dev
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
---------------------------------+-----------------------------------------
Comment (by Carlton Gibson):
I'll just note, the API contract here isn't to ''paths'' but to ''template
names''. Really it's an implementation detail of the loaders that those
names map to the file system. A DB-based loader (say) would be free to
adopt a totally different naming scheme, such that getting passed
`pathlib.Path` instances would be unexpected, shall we say.
--
Ticket URL: <https://code.djangoproject.com/ticket/33839#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070181f66f2d3c-1896a5f7-4938-4af2-9184-e3d48125f0da-000000%40eu-central-1.amazonses.com.