Django 5.1 Documentationsetting named ENABLE_ANALYTICS is not set to True: from django.conf import settings from django.core.checks import Warning, register @register("myapp", deploy=True) def check_enable_analytics_is_true_on_deploy(app_configs errors = [] if getattr(settings, "ENABLE_ANALYTICS", None) is not True: errors.append( Warning( "The ENABLE_ANALYTICS setting should be set to True in deployment override_settings class EnableAnalyticsDeploymentCheckTest(SimpleTestCase): @override_settings(ENABLE_ANALYTICS=None) def test_when_set_to_none(self): stderr = StringIO() call_command("check"0 码力 | 3513 页 | 3.17 MB | 1 年前3
Django 5.1.2 Documentationsetting named ENABLE_ANALYTICS is not set to True: from django.conf import settings from django.core.checks import Warning, register @register("myapp", deploy=True) def check_enable_analytics_is_true_on_deploy(app_configs errors = [] if getattr(settings, "ENABLE_ANALYTICS", None) is not True: errors.append( Warning( "The ENABLE_ANALYTICS setting should be set to True in deployment override_settings class EnableAnalyticsDeploymentCheckTest(SimpleTestCase): @override_settings(ENABLE_ANALYTICS=None) def test_when_set_to_none(self): stderr = StringIO() call_command("check"0 码力 | 3519 页 | 3.17 MB | 1 年前3
Django 5.0.x Documentationsetting named ENABLE_ANALYTICS is not set to True: from django.conf import settings from django.core.checks import Warning, register @register("myapp", deploy=True) def check_enable_analytics_is_true_on_deploy(app_configs errors = [] if getattr(settings, "ENABLE_ANALYTICS", None) is not True: errors.append( Warning( "The ENABLE_ANALYTICS setting should be set to True in deployment override_settings class EnableAnalyticsDeploymentCheckTest(SimpleTestCase): @override_settings(ENABLE_ANALYTICS=None) def test_when_set_to_none(self): stderr = StringIO() call_command("check"0 码力 | 3407 页 | 3.21 MB | 1 年前3
Django 5.1.2 Documentationnamed ENABLE_ANALYTICS is not set to True: from django.conf import settings from django.core.checks import Warning, register @register("myapp", deploy=True) def check_enable_analytics_is_true_on_deploy(app_configs figs, **kwargs): errors = [] if getattr(settings, "ENABLE_ANALYTICS", None) is not True: errors.append( Warning( "The ENABLE_ANALYTICS setting should be set to True in deployment.", id="myapp.W001" override_settings class EnableAnalyticsDeploymentCheckTest(SimpleTestCase): @override_settings(ENABLE_ANALYTICS=None) def test_when_set_to_none(self): (continues on next page) 752 Chapter 3. Using Django0 码力 | 2923 页 | 9.62 MB | 1 年前3
Django 5.1 Documentationnamed ENABLE_ANALYTICS is not set to True: from django.conf import settings from django.core.checks import Warning, register @register("myapp", deploy=True) def check_enable_analytics_is_true_on_deploy(app_configs figs, **kwargs): errors = [] if getattr(settings, "ENABLE_ANALYTICS", None) is not True: errors.append( Warning( "The ENABLE_ANALYTICS setting should be set to True in deployment.", id="myapp.W001" override_settings class EnableAnalyticsDeploymentCheckTest(SimpleTestCase): @override_settings(ENABLE_ANALYTICS=None) def test_when_set_to_none(self): (continues on next page) 3.23. System check framework0 码力 | 2917 页 | 9.59 MB | 1 年前3
Django 5.0.x Documentationnamed ENABLE_ANALYTICS is not set to True: from django.conf import settings from django.core.checks import Warning, register @register("myapp", deploy=True) def check_enable_analytics_is_true_on_deploy(app_configs figs, **kwargs): errors = [] if getattr(settings, "ENABLE_ANALYTICS", None) is not True: errors.append( Warning( "The ENABLE_ANALYTICS setting should be set to True in deployment.", id="myapp.W001" override_settings class EnableAnalyticsDeploymentCheckTest(SimpleTestCase): @override_settings(ENABLE_ANALYTICS=None) def test_when_set_to_none(self): stderr = StringIO() call_command("check", "-t", "myapp"0 码力 | 2878 页 | 9.60 MB | 1 年前3
Django 1.10.x Documentationfixes a security issue in 1.9.9. CSRF protection bypass on a site with Google Analytics An interaction between Google Analytics and Django’s cookie parsing could allow an attacker to set arbitrary cookies fixes a security issue in 1.8.14. CSRF protection bypass on a site with Google Analytics An interaction between Google Analytics and Django’s cookie parsing could allow an attacker to set arbitrary cookies which is turned on by default, or • using a client-side library which sets cookies, like Google Analytics. This makes the cache effectively work on a per-session basis regardless of the CACHE_MIDDLEWARE_ANONYMOUS_ONLY0 码力 | 1817 页 | 6.19 MB | 1 年前3
Django 1.10.x Documentationfixes a security issue in 1.9.9. CSRF protection bypass on a site with Google Analytics An interaction between Google Analytics and Django’s cookie parsing could allow an attacker to set arbitrary cookies fixes a security issue in 1.8.14. CSRF protection bypass on a site with Google Analytics An interaction between Google Analytics and Django’s cookie parsing could allow an attacker to set arbitrary cookies which is turned on by default, or using a client-side library which sets cookies, like Google Analytics. This makes the cache effectively work on a per-session basis regardless of the CACHE_MIDDLEWARE_ANONYMOUS_ONLY0 码力 | 2538 页 | 2.59 MB | 1 年前3
Django 2.1.x Documentationfixes a security issue in 1.9.9. CSRF protection bypass on a site with Google Analytics An interaction between Google Analytics and Django’s cookie parsing could allow an attacker to set arbitrary cookies fixes a security issue in 1.8.14. CSRF protection bypass on a site with Google Analytics An interaction between Google Analytics and Django’s cookie parsing could allow an attacker to set arbitrary cookies which is turned on by default, or • using a client-side library which sets cookies, like Google Analytics. This makes the cache effectively work on a per-session basis regardless of the CACHE_MIDDLEWARE_ANONYMOUS_ONLY0 码力 | 1910 页 | 6.49 MB | 1 年前3
Django 1.11.x Documentationfixes a security issue in 1.9.9. CSRF protection bypass on a site with Google Analytics An interaction between Google Analytics and Django’s cookie parsing could allow an attacker to set arbitrary cookies fixes a security issue in 1.8.14. CSRF protection bypass on a site with Google Analytics An interaction between Google Analytics and Django’s cookie parsing could allow an attacker to set arbitrary cookies which is turned on by default, or • using a client-side library which sets cookies, like Google Analytics. This makes the cache effectively work on a per-session basis regardless of the CACHE_MIDDLEWARE_ANONYMOUS_ONLY0 码力 | 1878 页 | 6.40 MB | 1 年前3
共 30 条
- 1
- 2
- 3













