Module ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword NameLoad keyword ListLoad Str keyword ListLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword NameLoad keyword ListLoad keyword ListLoad Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword NameLoad keyword ListLoad Str keyword ListLoad Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword NameLoad keyword ListLoad Str keyword ListLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword NameLoad keyword ListLoad Str keyword ListLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword NameLoad keyword ListLoad keyword ListLoad Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword NameLoad keyword ListLoad Str keyword ListLoad Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword NameLoad keyword ListLoad Str keyword ListLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword ListLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword ListLoad Str keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad Str keyword NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword ListLoad Str keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad Str keyword NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword ListLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword ListLoad Str keyword Num FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad keyword Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad Str keyword Num decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword ListLoad Str keyword NameLoad keyword Num FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad keyword NameLoad keyword Num FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad Str keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad Str keyword NameLoad keyword Num decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword ListLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword ListLoad Str keyword Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad keyword Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad Str keyword Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword ListLoad Str keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad Str keyword NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword ListLoad Str keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad Str keyword NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword ListLoad Str keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad Str keyword NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword BinOpAdd BinOpMult Str Num Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword Str FunctionDef arguments args NameParam defaults body Delete AttributeDel NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword BinOpAdd BinOpMult Str Num Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword BinOpMult Str Num decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword ListLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Call NameLoad keyword ListLoad Str decorator_list
N/A django.conf settings django.core.checks.security base csrf sessions django.test SimpleTestCase django.test.utils override_settings CheckSessionCookieSecureTest N/A SimpleTestCase N/A func N/A N/A self N/A N/A django.core.checks.security.sessions check_session_cookie_secure N/A check_session_cookie_secure N/A property test_session_cookie_secure_with_installed_app N/A N/A self N/A N/A N/A 
        Warn if SESSION_COOKIE_SECURE is off and "django.contrib.sessions" is
        in INSTALLED_APPS.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A sessions W010 N/A N/A override_settings SESSION_COOKIE_SECURE False INSTALLED_APPS N/A django.contrib.sessions MIDDLEWARE_CLASSES N/A test_session_cookie_secure_with_middleware N/A N/A self N/A N/A N/A 
        Warn if SESSION_COOKIE_SECURE is off and
        "django.contrib.sessions.middleware.SessionMiddleware" is in
        MIDDLEWARE_CLASSES.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A sessions W011 N/A N/A override_settings SESSION_COOKIE_SECURE False INSTALLED_APPS N/A MIDDLEWARE_CLASSES N/A django.contrib.sessions.middleware.SessionMiddleware test_session_cookie_secure_both N/A N/A self N/A N/A N/A 
        If SESSION_COOKIE_SECURE is off and we find both the session app and
        the middleware, provide one common warning.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A sessions W012 N/A N/A override_settings SESSION_COOKIE_SECURE False INSTALLED_APPS N/A django.contrib.sessions MIDDLEWARE_CLASSES N/A django.contrib.sessions.middleware.SessionMiddleware test_session_cookie_secure_true N/A N/A self N/A N/A N/A 
        If SESSION_COOKIE_SECURE is on, there's no warning about it.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings SESSION_COOKIE_SECURE True INSTALLED_APPS N/A django.contrib.sessions MIDDLEWARE_CLASSES N/A django.contrib.sessions.middleware.SessionMiddleware N/A CheckSessionCookieHttpOnlyTest N/A SimpleTestCase N/A func N/A N/A self N/A N/A django.core.checks.security.sessions check_session_cookie_httponly N/A check_session_cookie_httponly N/A property test_session_cookie_httponly_with_installed_app N/A N/A self N/A N/A N/A 
        Warn if SESSION_COOKIE_HTTPONLY is off and "django.contrib.sessions"
        is in INSTALLED_APPS.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A sessions W013 N/A N/A override_settings SESSION_COOKIE_HTTPONLY False INSTALLED_APPS N/A django.contrib.sessions MIDDLEWARE_CLASSES N/A test_session_cookie_httponly_with_middleware N/A N/A self N/A N/A N/A 
        Warn if SESSION_COOKIE_HTTPONLY is off and
        "django.contrib.sessions.middleware.SessionMiddleware" is in
        MIDDLEWARE_CLASSES.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A sessions W014 N/A N/A override_settings SESSION_COOKIE_HTTPONLY False INSTALLED_APPS N/A MIDDLEWARE_CLASSES N/A django.contrib.sessions.middleware.SessionMiddleware test_session_cookie_httponly_both N/A N/A self N/A N/A N/A 
        If SESSION_COOKIE_HTTPONLY is off and we find both the session app and
        the middleware, provide one common warning.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A sessions W015 N/A N/A override_settings SESSION_COOKIE_HTTPONLY False INSTALLED_APPS N/A django.contrib.sessions MIDDLEWARE_CLASSES N/A django.contrib.sessions.middleware.SessionMiddleware test_session_cookie_httponly_true N/A N/A self N/A N/A N/A 
        If SESSION_COOKIE_HTTPONLY is on, there's no warning about it.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings SESSION_COOKIE_HTTPONLY True INSTALLED_APPS N/A django.contrib.sessions MIDDLEWARE_CLASSES N/A django.contrib.sessions.middleware.SessionMiddleware N/A CheckCSRFMiddlewareTest N/A SimpleTestCase N/A func N/A N/A self N/A N/A django.core.checks.security.csrf check_csrf_middleware N/A check_csrf_middleware N/A property test_no_csrf_middleware N/A N/A self N/A N/A N/A 
        Warn if CsrfViewMiddleware isn't in MIDDLEWARE_CLASSES.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A csrf W003 N/A N/A override_settings MIDDLEWARE_CLASSES N/A test_with_csrf_middleware N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.csrf.CsrfViewMiddleware N/A CheckCSRFCookieSecureTest N/A SimpleTestCase N/A func N/A N/A self N/A N/A django.core.checks.security.csrf check_csrf_cookie_secure N/A check_csrf_cookie_secure N/A property test_with_csrf_cookie_secure_false N/A N/A self N/A N/A N/A 
        Warn if CsrfViewMiddleware is in MIDDLEWARE_CLASSES but
        CSRF_COOKIE_SECURE isn't True.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A csrf W016 N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.csrf.CsrfViewMiddleware CSRF_COOKIE_SECURE False test_with_csrf_cookie_secure_false_no_middleware N/A N/A self N/A N/A N/A 
        No warning if CsrfViewMiddleware isn't in MIDDLEWARE_CLASSES, even if
        CSRF_COOKIE_SECURE is False.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A CSRF_COOKIE_SECURE False test_with_csrf_cookie_secure_true N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.csrf.CsrfViewMiddleware CSRF_COOKIE_SECURE True N/A CheckCSRFCookieHttpOnlyTest N/A SimpleTestCase N/A func N/A N/A self N/A N/A django.core.checks.security.csrf check_csrf_cookie_httponly N/A check_csrf_cookie_httponly N/A property test_with_csrf_cookie_httponly_false N/A N/A self N/A N/A N/A 
        Warn if CsrfViewMiddleware is in MIDDLEWARE_CLASSES but
        CSRF_COOKIE_HTTPONLY isn't True.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A csrf W017 N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.csrf.CsrfViewMiddleware CSRF_COOKIE_HTTPONLY False test_with_csrf_cookie_httponly_false_no_middleware N/A N/A self N/A N/A N/A 
        No warning if CsrfViewMiddleware isn't in MIDDLEWARE_CLASSES, even if
        CSRF_COOKIE_HTTPONLY is False.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A CSRF_COOKIE_HTTPONLY False test_with_csrf_cookie_httponly_true N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.csrf.CsrfViewMiddleware CSRF_COOKIE_HTTPONLY True N/A CheckSecurityMiddlewareTest N/A SimpleTestCase N/A func N/A N/A self N/A N/A django.core.checks.security.base check_security_middleware N/A check_security_middleware N/A property test_no_security_middleware N/A N/A self N/A N/A N/A 
        Warn if SecurityMiddleware isn't in MIDDLEWARE_CLASSES.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A base W001 N/A N/A override_settings MIDDLEWARE_CLASSES N/A test_with_security_middleware N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.security.SecurityMiddleware N/A CheckStrictTransportSecurityTest N/A SimpleTestCase N/A func N/A N/A self N/A N/A django.core.checks.security.base check_sts N/A check_sts N/A property test_no_sts N/A N/A self N/A N/A N/A 
        Warn if SECURE_HSTS_SECONDS isn't > 0.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A base W004 N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.security.SecurityMiddleware SECURE_HSTS_SECONDS 0 test_no_sts_no_middleware N/A N/A self N/A N/A N/A 
        Don't warn if SECURE_HSTS_SECONDS isn't > 0 and SecurityMiddleware isn't
        installed.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A SECURE_HSTS_SECONDS 0 test_with_sts N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.security.SecurityMiddleware SECURE_HSTS_SECONDS 3600 N/A CheckStrictTransportSecuritySubdomainsTest N/A SimpleTestCase N/A func N/A N/A self N/A N/A django.core.checks.security.base check_sts_include_subdomains N/A check_sts_include_subdomains N/A property test_no_sts_subdomains N/A N/A self N/A N/A N/A 
        Warn if SECURE_HSTS_INCLUDE_SUBDOMAINS isn't True.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A base W005 N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.security.SecurityMiddleware SECURE_HSTS_INCLUDE_SUBDOMAINS False SECURE_HSTS_SECONDS 3600 test_no_sts_subdomains_no_middleware N/A N/A self N/A N/A N/A 
        Don't warn if SecurityMiddleware isn't installed.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A SECURE_HSTS_INCLUDE_SUBDOMAINS False SECURE_HSTS_SECONDS 3600 test_no_sts_subdomains_no_seconds N/A N/A self N/A N/A N/A 
        Don't warn if SECURE_HSTS_SECONDS isn't set.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.security.SecurityMiddleware SECURE_SSL_REDIRECT False SECURE_HSTS_SECONDS None test_with_sts_subdomains N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.security.SecurityMiddleware SECURE_HSTS_INCLUDE_SUBDOMAINS True SECURE_HSTS_SECONDS 3600 N/A CheckXFrameOptionsMiddlewareTest N/A SimpleTestCase N/A func N/A N/A self N/A N/A django.core.checks.security.base check_xframe_options_middleware N/A check_xframe_options_middleware N/A property test_middleware_not_installed N/A N/A self N/A N/A N/A 
        Warn if XFrameOptionsMiddleware isn't in MIDDLEWARE_CLASSES.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A base W002 N/A N/A override_settings MIDDLEWARE_CLASSES N/A test_middleware_installed N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.clickjacking.XFrameOptionsMiddleware N/A CheckXFrameOptionsDenyTest N/A SimpleTestCase N/A func N/A N/A self N/A N/A django.core.checks.security.base check_xframe_deny N/A check_xframe_deny N/A property test_x_frame_options_not_deny N/A N/A self N/A N/A N/A 
        Warn if XFrameOptionsMiddleware is in MIDDLEWARE_CLASSES but
        X_FRAME_OPTIONS isn't 'DENY'.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A base W019 N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.clickjacking.XFrameOptionsMiddleware X_FRAME_OPTIONS SAMEORIGIN test_middleware_not_installed N/A N/A self N/A N/A N/A 
        No error if XFrameOptionsMiddleware isn't in MIDDLEWARE_CLASSES even if
        X_FRAME_OPTIONS isn't 'DENY'.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A X_FRAME_OPTIONS SAMEORIGIN test_xframe_deny N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.clickjacking.XFrameOptionsMiddleware X_FRAME_OPTIONS DENY N/A CheckContentTypeNosniffTest N/A SimpleTestCase N/A func N/A N/A self N/A N/A django.core.checks.security.base check_content_type_nosniff N/A check_content_type_nosniff N/A property test_no_content_type_nosniff N/A N/A self N/A N/A N/A 
        Warn if SECURE_CONTENT_TYPE_NOSNIFF isn't True.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A base W006 N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.security.SecurityMiddleware SECURE_CONTENT_TYPE_NOSNIFF False test_no_content_type_nosniff_no_middleware N/A N/A self N/A N/A N/A 
        Don't warn if SECURE_CONTENT_TYPE_NOSNIFF isn't True and
        SecurityMiddleware isn't in MIDDLEWARE_CLASSES.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A SECURE_CONTENT_TYPE_NOSNIFF False test_with_content_type_nosniff N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.security.SecurityMiddleware SECURE_CONTENT_TYPE_NOSNIFF True N/A CheckXssFilterTest N/A SimpleTestCase N/A func N/A N/A self N/A N/A django.core.checks.security.base check_xss_filter N/A check_xss_filter N/A property test_no_xss_filter N/A N/A self N/A N/A N/A 
        Warn if SECURE_BROWSER_XSS_FILTER isn't True.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A base W007 N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.security.SecurityMiddleware SECURE_BROWSER_XSS_FILTER False test_no_xss_filter_no_middleware N/A N/A self N/A N/A N/A 
        Don't warn if SECURE_BROWSER_XSS_FILTER isn't True and
        SecurityMiddleware isn't in MIDDLEWARE_CLASSES.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A SECURE_BROWSER_XSS_FILTER False test_with_xss_filter N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.security.SecurityMiddleware SECURE_BROWSER_XSS_FILTER True N/A CheckSSLRedirectTest N/A SimpleTestCase N/A func N/A N/A self N/A N/A django.core.checks.security.base check_ssl_redirect N/A check_ssl_redirect N/A property test_no_ssl_redirect N/A N/A self N/A N/A N/A 
        Warn if SECURE_SSL_REDIRECT isn't True.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A base W008 N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.security.SecurityMiddleware SECURE_SSL_REDIRECT False test_no_ssl_redirect_no_middleware N/A N/A self N/A N/A N/A 
        Don't warn if SECURE_SSL_REDIRECT is False and SecurityMiddleware isn't
        installed.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A SECURE_SSL_REDIRECT False test_with_ssl_redirect N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings MIDDLEWARE_CLASSES N/A django.middleware.security.SecurityMiddleware SECURE_SSL_REDIRECT True N/A CheckSecretKeyTest N/A SimpleTestCase N/A func N/A N/A self N/A N/A django.core.checks.security.base check_secret_key N/A check_secret_key N/A property test_okay_secret_key N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A len N/A settings SECRET_KEY N/A base SECRET_KEY_MIN_LENGTH N/A N/A N/A self assertGreater N/A len N/A set N/A settings SECRET_KEY N/A base SECRET_KEY_MIN_UNIQUE_CHARACTERS N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings SECRET_KEY N/A N/A abcdefghijklmnopqrstuvwx 2 ab test_empty_secret_key N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A base W009 N/A N/A override_settings SECRET_KEY test_missing_secret_key N/A N/A self N/A N/A N/A N/A settings SECRET_KEY N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A base W009 N/A N/A override_settings SECRET_KEY None test_none_secret_key N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A base W009 N/A N/A override_settings SECRET_KEY None test_low_length_secret_key N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A len N/A settings SECRET_KEY N/A N/A base SECRET_KEY_MIN_LENGTH 1 N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A base W009 N/A N/A override_settings SECRET_KEY N/A N/A abcdefghijklmnopqrstuvwx 2 a test_low_entropy_secret_key N/A N/A self N/A N/A N/A N/A N/A self assertGreater N/A len N/A settings SECRET_KEY N/A base SECRET_KEY_MIN_LENGTH N/A N/A N/A self assertLess N/A len N/A set N/A settings SECRET_KEY N/A base SECRET_KEY_MIN_UNIQUE_CHARACTERS N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A base W009 N/A N/A override_settings SECRET_KEY N/A abcd 20 N/A CheckDebugTest N/A SimpleTestCase N/A func N/A N/A self N/A N/A django.core.checks.security.base check_debug N/A check_debug N/A property test_debug_true N/A N/A self N/A N/A N/A 
        Warn if DEBUG is True.
         N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A base W018 N/A N/A override_settings DEBUG True test_debug_false N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings DEBUG False N/A CheckAllowedHostsTest N/A SimpleTestCase N/A func N/A N/A self N/A N/A django.core.checks.security.base check_allowed_hosts N/A check_allowed_hosts N/A property test_allowed_hosts_empty N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A base W020 N/A N/A override_settings ALLOWED_HOSTS N/A test_allowed_hosts_set N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self func None N/A N/A N/A override_settings ALLOWED_HOSTS N/A .example.com N/A