/usr/local/lib/python3.9/site-packages/django/core/checks/compatibility
from django.conf import settings from .. import Error, Tags, register @register(Tags.compatibility) def check_csrf_trusted_origins(app_configs, **kwargs): errors = [] for origin in settings.CSRF_TRUSTED_ORIGINS: if "://" not in origin: errors.append( Error( "As of Django 4.0, the values in the CSRF_TRUSTED_ORIGINS " "setting must start with a scheme (usually http:// or " "https://) but found %s. See the release notes for details." % origin, id="4_0.E001", ) ) return errors
.
Edit
..
Edit
__init__.py
Edit
__pycache__
Edit
django_4_0.py
Edit