mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +00:00
Prepare production, we will send mails
This commit is contained in:
parent
b0efe08a13
commit
f7b68678d8
@ -1 +1 @@
|
|||||||
Subproject commit f0aa426950b9b867bf99233795e260871be2cb99
|
Subproject commit c37a6effc9217e2ffceb631f48b371f87814c1f6
|
@ -44,14 +44,8 @@ ALLOWED_HOSTS = ['*']
|
|||||||
|
|
||||||
# Emails
|
# Emails
|
||||||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
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@' + os.getenv("DOMAIN", "example.com")
|
SERVER_EMAIL = 'notekfet@localhost'
|
||||||
|
|
||||||
# Security settings
|
# Security settings
|
||||||
SECURE_CONTENT_TYPE_NOSNIFF = False
|
SECURE_CONTENT_TYPE_NOSNIFF = False
|
||||||
|
@ -33,15 +33,14 @@ ALLOWED_HOSTS = [os.environ.get('NOTE_URL', 'localhost')]
|
|||||||
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', 'CHANGE_ME_IN_ENV_SETTINGS')
|
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', 'CHANGE_ME_IN_ENV_SETTINGS')
|
||||||
|
|
||||||
# Emails
|
# Emails
|
||||||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||||
# EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
EMAIL_USE_SSL = False
|
||||||
# EMAIL_USE_SSL = False
|
EMAIL_HOST = os.getenv('EMAIL_HOST', 'smtp.example.org')
|
||||||
# EMAIL_HOST = 'smtp.example.org'
|
EMAIL_PORT = os.getenv('EMAIL_PORT', 443)
|
||||||
# EMAIL_PORT = 25
|
EMAIL_HOST_USER = os.getenv('EMAIL_USER', 'change_me')
|
||||||
# EMAIL_HOST_USER = 'change_me'
|
EMAIL_HOST_PASSWORD = os.getenv('EMAIL_PASSWORD', 'change_me')
|
||||||
# EMAIL_HOST_PASSWORD = 'change_me'
|
|
||||||
|
|
||||||
SERVER_EMAIL = 'no-reply@' + os.getenv("DOMAIN", "example.com")
|
SERVER_EMAIL = os.getenv("NOTE_MAIL", "notekfet@example.com")
|
||||||
|
|
||||||
# Security settings
|
# Security settings
|
||||||
SECURE_CONTENT_TYPE_NOSNIFF = False
|
SECURE_CONTENT_TYPE_NOSNIFF = False
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
# CAS
|
# CAS
|
||||||
OPTIONAL_APPS = [
|
OPTIONAL_APPS = [
|
||||||
# 'cas_server',
|
# 'cas_server',
|
||||||
# 'cas',
|
|
||||||
# 'debug_toolbar'
|
# 'debug_toolbar'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
ADMINS = [('Note Kfet', 'notekfet@example.com')]
|
||||||
|
Loading…
Reference in New Issue
Block a user