diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-11-07 01:26:22 -0800 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2019-11-07 10:26:22 +0100 |
| commit | 77aa74cb70dd85497dbade6bc0f394aa41e88c94 (patch) | |
| tree | f526b5e63897415e8753c6e38396bba535e3fc75 /django/template | |
| parent | 367634f976ab43db93321bf4eb898449b670e291 (diff) | |
Refs #29983 -- Added support for using pathlib.Path in all settings.
Diffstat (limited to 'django/template')
| -rw-r--r-- | django/template/utils.py | 2 |
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() ] |
