summaryrefslogtreecommitdiff
path: root/django/core/checks/security
diff options
context:
space:
mode:
authorlyova24 <lengthylyova@gmail.com>2025-08-05 18:14:25 +0700
committerJacob Walls <jacobtylerwalls@gmail.com>2025-10-13 17:27:07 -0400
commit54cfb5f328177b6fbf4eae827fbcbd757185dc85 (patch)
treec669417eeffd8fb3770ebaf3c8ecfc9d3c113caa /django/core/checks/security
parentd5543a23d32d6438edae060081a054f617193341 (diff)
Replaced multi-level relative imports with absolute imports in django/.
Diffstat (limited to 'django/core/checks/security')
-rw-r--r--django/core/checks/security/base.py3
-rw-r--r--django/core/checks/security/csrf.py3
-rw-r--r--django/core/checks/security/sessions.py3
3 files changed, 3 insertions, 6 deletions
diff --git a/django/core/checks/security/base.py b/django/core/checks/security/base.py
index 7d9631df1e..51f6df7a3b 100644
--- a/django/core/checks/security/base.py
+++ b/django/core/checks/security/base.py
@@ -1,8 +1,7 @@
from django.conf import settings
+from django.core.checks import Error, Tags, Warning, register
from django.core.exceptions import ImproperlyConfigured
-from .. import Error, Tags, Warning, register
-
CROSS_ORIGIN_OPENER_POLICY_VALUES = {
"same-origin",
"same-origin-allow-popups",
diff --git a/django/core/checks/security/csrf.py b/django/core/checks/security/csrf.py
index d00f2259c6..dee29384ee 100644
--- a/django/core/checks/security/csrf.py
+++ b/django/core/checks/security/csrf.py
@@ -1,8 +1,7 @@
import inspect
from django.conf import settings
-
-from .. import Error, Tags, Warning, register
+from django.core.checks import Error, Tags, Warning, register
W003 = Warning(
"You don't appear to be using Django's built-in "
diff --git a/django/core/checks/security/sessions.py b/django/core/checks/security/sessions.py
index f317d09f73..e529c2bc95 100644
--- a/django/core/checks/security/sessions.py
+++ b/django/core/checks/security/sessions.py
@@ -1,6 +1,5 @@
from django.conf import settings
-
-from .. import Tags, Warning, register
+from django.core.checks import Tags, Warning, register
def add_session_cookie_message(message):