From 81a8081c8e761cf0f70891e1118b2b08a8558f25 Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Wed, 12 Oct 2022 17:21:42 +0200 Subject: [PATCH] =?UTF-8?q?Nechceme=20=C5=99e=C5=A1it=20CSRF=20warningy=20?= =?UTF-8?q?(RFC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Možná chceme – pokud by jich bylo moc, tak to začne být podezřelé a nevím, jestli to zvládne chytit django.security.suspicious_behaviour (nebo jak se jmenuje) --- mamweb/settings_prod.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mamweb/settings_prod.py b/mamweb/settings_prod.py index e674ab05..6a20ff8c 100644 --- a/mamweb/settings_prod.py +++ b/mamweb/settings_prod.py @@ -61,6 +61,7 @@ CSRF_COOKIE_SECURE = True LOGGING['loggers']['']['handlers'] = ['console', 'mail_admins'] LOGGING['loggers']['django']['handlers'] = ['console', 'mail_admins'] +LOGGING['loggers']['django.security.csrf']['level'] = 'ERROR' LOGGING['handlers']['registration_logfile']['filename'] = '/home/mam-web/logs/prod/registration.log' LOGGING['handlers']['registration_error_log']['filename'] = '/home/mam-web/logs/prod/registration_errors.log'