Set the ADMINS to be the ZULIP_ADMINISTRATOR by default.

(imported from commit 6ff4e611bb2e145e49ea6f477d79415816372a16)
This commit is contained in:
Tim Abbott
2013-11-13 13:55:04 -05:00
parent a16a7a028c
commit c66556381a
2 changed files with 9 additions and 6 deletions

View File

@@ -173,3 +173,7 @@ ZULIP_ADMINISTRATOR = 'support@zulip.com'
API_SUPER_USERS = set(["tabbott/extra@mit.edu",
"irc-bot@zulip.com",
"bot1@customer35.invalid"])
ADMINS = (
('Zulip Error Reports', 'errors@zulip.com'),
)

View File

@@ -49,12 +49,6 @@ elif DEPLOYED:
else:
ALLOWED_HOSTS = ['localhost']
ADMINS = (
('Zulip Error Reports', 'errors@zulip.com'),
)
MANAGERS = ADMINS
DATABASES = {"default": {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'zulip',
@@ -262,6 +256,7 @@ DEFAULT_SETTINGS = {'TWITTER_CONSUMER_KEY': '',
'FEEDBACK_BOT': 'feedback@zulip.com',
'FEEDBACK_BOT_NAME': 'Zulip Feedback Bot',
'API_SUPER_USERS': set(),
'ADMINS': '',
'ENABLE_FEEDBACK': True,
}
@@ -269,6 +264,10 @@ for setting_name, setting_val in DEFAULT_SETTINGS.iteritems():
if not setting_name in vars():
vars()[setting_name] = setting_val
if ADMINS == "":
ADMINS = (("Zulip Administrator", ZULIP_ADMINISTRATOR),)
MANAGERS = ADMINS
# These are the settings that manage.py checkconfig will check that
# user has filled in before starting the app. It consists of a series
# of pairs of (setting name, default value that it must be changed from)