/usr/share/cagefs-skeleton/usr/local/lib/python3.9/site-packages/django/core/checks
from pathlib import Path from django.conf import settings from . import Error, Tags, register @register(Tags.files) def check_setting_file_upload_temp_dir(app_configs, **kwargs): setting = getattr(settings, "FILE_UPLOAD_TEMP_DIR", None) if setting and not Path(setting).is_dir(): return [ Error( f"The FILE_UPLOAD_TEMP_DIR setting refers to the nonexistent " f"directory '{setting}'.", id="files.E001", ), ] return []
.
Edit
..
Edit
__init__.py
Edit
__pycache__
Edit
async_checks.py
Edit
caches.py
Edit
compatibility
Edit
database.py
Edit
files.py
Edit
messages.py
Edit
model_checks.py
Edit
registry.py
Edit
security
Edit
templates.py
Edit
translation.py
Edit
urls.py
Edit