From eaa9b78d56f05702fb441a25c3e837ac75b7422d Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 8 Jul 2019 14:00:57 +0200 Subject: [PATCH] Demo --- note_kfet/settings_local.example.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 note_kfet/settings_local.example.py diff --git a/note_kfet/settings_local.example.py b/note_kfet/settings_local.example.py new file mode 100644 index 00000000..b539cd18 --- /dev/null +++ b/note_kfet/settings_local.example.py @@ -0,0 +1,22 @@ +# Obligatoire, liste des host autorisés +ALLOWED_HOSTS = ['127.0.0.1'] + +# Emails +EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' +# EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' +# EMAIL_USE_SSL = False +# EMAIL_HOST = 'smtp.example.org' +# EMAIL_PORT = 25 +# EMAIL_HOST_USER = 'change_me' +# EMAIL_HOST_PASSWORD = 'change_me' + +SERVER_EMAIL = 'no-reply@example.org' + +# Security settings +SECURE_CONTENT_TYPE_NOSNIFF = False +SECURE_BROWSER_XSS_FILTER = False +SESSION_COOKIE_SECURE = False +CSRF_COOKIE_SECURE = False +CSRF_COOKIE_HTTPONLY = False +X_FRAME_OPTIONS = 'DENY' +SESSION_COOKIE_AGE = 60 * 60 * 3