1
0
mirror of https://github.com/django/django.git synced 2025-04-14 12:24:36 +00:00
This commit is contained in:
almaz amanzholuly 2024-03-24 05:11:07 +05:00
parent 37e7e9bd95
commit cdfea499be

View File

@ -61,11 +61,12 @@ def check_file_based_cache_is_absolute(app_configs, **kwargs):
alias_name = alias
location = config
if alias_name is not None and not pathlib.Path(location.get("LOCATION")).is_absolute():
if (alias_name is not None and
not pathlib.Path(location.get("LOCATION")).is_absolute()):
return Warning(
f"Your '{alias_name}' cache LOCATION path is relative. Use an "
f"absolute path instead.",
id="caches.W003",
)
f"Your '{alias_name}' cache LOCATION path is relative. Use an "
f"absolute path instead.",
id="caches.W003",
)
return []