summaryrefslogtreecommitdiff
path: root/django/template
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-11-07 01:26:22 -0800
committerCarlton Gibson <carlton.gibson@noumenal.es>2019-11-07 10:26:22 +0100
commit77aa74cb70dd85497dbade6bc0f394aa41e88c94 (patch)
treef526b5e63897415e8753c6e38396bba535e3fc75 /django/template
parent367634f976ab43db93321bf4eb898449b670e291 (diff)
Refs #29983 -- Added support for using pathlib.Path in all settings.
Diffstat (limited to 'django/template')
-rw-r--r--django/template/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/utils.py b/django/template/utils.py
index f4ed2750c2..2d30e1637a 100644
--- a/django/template/utils.py
+++ b/django/template/utils.py
@@ -99,7 +99,7 @@ def get_app_template_dirs(dirname):
installed applications.
"""
template_dirs = [
- str(Path(app_config.path) / dirname)
+ Path(app_config.path) / dirname
for app_config in apps.get_app_configs()
if app_config.path and (Path(app_config.path) / dirname).is_dir()
]