Commit 97ea8cf6 authored by Birin Sanchez's avatar Birin Sanchez
Browse files

Move ADMINS Django setting from code to config.ini


Signed-off-by: Birin Sanchez's avatarBirin Sanchez <birin.sanchez@puri.sm>
parent d3543bbf
Pipeline #29795 passed with stage
in 34 seconds
......@@ -73,6 +73,7 @@ EMAIL_PORT = 465
EMAIL_USE_TLS = False
EMAIL_USE_SSL = True
DEFAULT_FROM_EMAIL = "Do not reply <noreply@example.com>"
ADMINS_EMAIL = The Admins, theadmins@example.com; The Ops, theops@example.com
# This is the link to the subscribe page, used in different parts of the middleware
SUBSCRIBE_HREF = /#bundle
......@@ -292,9 +292,14 @@ REST_FRAMEWORK = {
PASSWORD_RESET_TOKEN_EXPIRES = secret_config('PASSWORD_RESET_TOKEN_EXPIRES', 1800)
# Email server configuration
ADMINS = [('Librem One Admins', 'admins@librem.one'), ('Purism Admins', 'admins@puri.sm')]
DEFAULT_FROM_EMAIL = config('DEFAULT_FROM_EMAIL', 'Librem One <noreply@librem.one>')
SERVER_EMAIL = config('SERVER_EMAIL', 'Librem One <noreply@librem.one>')
ADMINS = config(
'ADMINS_EMAIL',
cast=lambda v: [tuple(
j.strip() for j in s.split(',')) for s in v.split(';')])
DEFAULT_FROM_EMAIL = config('DEFAULT_FROM_EMAIL',
'Change me <noreply@example.com>')
SERVER_EMAIL = config('SERVER_EMAIL',
'Change me <noreply@example.com>')
EMAIL_BACKEND = config('EMAIL_BACKEND','django.core.mail.backends.smtp.EmailBackend')
EMAIL_HOST = config('EMAIL_HOST', 'localhost')
EMAIL_HOST_USER = config('EMAIL_HOST_USER', '')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment