1
0
mirror of https://github.com/django/django.git synced 2025-06-05 03:29:12 +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 alias_name = alias
location = config 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( return Warning(
f"Your '{alias_name}' cache LOCATION path is relative. Use an " f"Your '{alias_name}' cache LOCATION path is relative. Use an "
f"absolute path instead.", f"absolute path instead.",
id="caches.W003", id="caches.W003",
) )
return [] return []