mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
clean-up
This commit is contained in:
parent
2374709e2c
commit
9870a6d906
@ -60,10 +60,7 @@ def check_file_based_cache_is_absolute(app_configs, **kwargs):
|
|||||||
alias_name = alias
|
alias_name = alias
|
||||||
location = config.get("LOCATION")
|
location = config.get("LOCATION")
|
||||||
|
|
||||||
if (
|
if location is not None and not pathlib.Path(location).is_absolute():
|
||||||
location is not None
|
|
||||||
and not pathlib.Path(location).is_absolute()
|
|
||||||
):
|
|
||||||
return [
|
return [
|
||||||
Warning(
|
Warning(
|
||||||
f"Your '{alias_name}' cache LOCATION path is relative. Use an "
|
f"Your '{alias_name}' cache LOCATION path is relative. Use an "
|
||||||
|
Loading…
Reference in New Issue
Block a user