Move default_stream list to settings.

This commit is contained in:
Vishnu Ks 2016-06-17 07:23:40 +05:30 committed by Tim Abbott
parent ce5e7d3ba6
commit 8213ca135a
2 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class Command(BaseCommand):
(admin_realm, _) = do_create_realm(settings.ADMIN_DOMAIN,
settings.ADMIN_DOMAIN, True)
set_default_streams(admin_realm, ["social", "general", "zulip"])
set_default_streams(admin_realm, settings.DEFAULT_NEW_REALM_STREAMS)
self.stdout.write("Successfully populated database with initial data.\n")

View File

@ -147,6 +147,7 @@ DEFAULT_SETTINGS = {'TWITTER_CONSUMER_KEY': '',
'GOOGLE_CLIENT_ID': '',
'DBX_APNS_CERT_FILE': None,
'EXTRA_INSTALLED_APPS': [],
'DEFAULT_NEW_REALM_STREAMS': ["social", "general", "zulip"],
}
for setting_name, setting_val in six.iteritems(DEFAULT_SETTINGS):