mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
clean-up
This commit is contained in:
parent
37e7e9bd95
commit
cdfea499be
@ -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 []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user