Browse Source

Nechceme řešit CSRF warningy (RFC)

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)
pull/3/head
Pavel "LEdoian" Turinsky 2 years ago
parent
commit
81a8081c8e
  1. 1
      mamweb/settings_prod.py

1
mamweb/settings_prod.py

@ -61,6 +61,7 @@ CSRF_COOKIE_SECURE = True
LOGGING['loggers']['']['handlers'] = ['console', 'mail_admins'] LOGGING['loggers']['']['handlers'] = ['console', 'mail_admins']
LOGGING['loggers']['django']['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_logfile']['filename'] = '/home/mam-web/logs/prod/registration.log'
LOGGING['handlers']['registration_error_log']['filename'] = '/home/mam-web/logs/prod/registration_errors.log' LOGGING['handlers']['registration_error_log']['filename'] = '/home/mam-web/logs/prod/registration_errors.log'

Loading…
Cancel
Save