mirror of
https://github.com/django/django.git
synced 2025-04-14 12:24:36 +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
|
||||
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 []
|
||||
|
Loading…
x
Reference in New Issue
Block a user