Skip to content
Snippets Groups Projects
Verified Commit 4376fa2e authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Make admin from/contact settings default on inital superuser

parent f423fa7b
No related branches found
No related tags found
1 merge request!727Make admin from/contact settings default to initial superuser
Pipeline #35762 canceled
......@@ -544,10 +544,10 @@ SASS_PROCESSOR_INCLUDE_DIRS = [
STATIC_ROOT,
]
ADMINS = _settings.get("contact.admins", [])
SERVER_EMAIL = _settings.get("contact.from", "root@localhost")
DEFAULT_FROM_EMAIL = _settings.get("contact.from", "root@localhost")
MANAGERS = _settings.get("contact.admins", [])
ADMINS = _settings.get("contact.admins", [AUTH_INITIAL_SUPERUSER["email"]])
SERVER_EMAIL = _settings.get("contact.from", ADMINS[0])
DEFAULT_FROM_EMAIL = _settings.get("contact.from", ADMINS[0])
MANAGERS = _settings.get("contact.admins", ADMINS)
if _settings.get("mail.server.host", None):
EMAIL_HOST = _settings.get("mail.server.host")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment