mirror of
https://github.com/django-components/django-components.git
synced 2025-08-19 21:50:15 +00:00
Don't rely on BASE_DIR being a Path.
This commit is contained in:
parent
f3350ced11
commit
a32128a420
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ class Loader(FilesystemLoader):
|
|||
directories = set(get_app_template_dirs(component_dir))
|
||||
|
||||
if hasattr(settings, "BASE_DIR"):
|
||||
path = (settings.BASE_DIR / component_dir).resolve()
|
||||
path = (Path(settings.BASE_DIR) / component_dir).resolve()
|
||||
if path.is_dir():
|
||||
directories.add(path)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue