mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
Clean up initialize_enterprise_db and fix domain.
(imported from commit af6f20c7705720c0043817516fdb3c21777796bb)
This commit is contained in:
@@ -43,16 +43,9 @@ class Command(BaseCommand):
|
||||
for realm in Realm.objects.all():
|
||||
realms[realm.domain] = realm
|
||||
|
||||
# Create test Users (UserProfiles are automatically created,
|
||||
# as are subscriptions to the ability to receive personals).
|
||||
names = [(settings.FEEDBACK_BOT_NAME, settings.FEEDBACK_BOT)]
|
||||
for i in xrange(options["extra_users"]):
|
||||
names.append(('Extra User %d' % (i,), 'extrauser%d@zulip.com' % (i,)))
|
||||
create_users(realms, names)
|
||||
|
||||
# Create the "website" and "API" clients; if we don't, the
|
||||
# default values in zerver/decorators.py will not work
|
||||
# with the Django test suite.
|
||||
get_client("website")
|
||||
get_client("API")
|
||||
|
||||
@@ -67,5 +60,5 @@ class Command(BaseCommand):
|
||||
self.stdout.write("Successfully populated database with initial data.\n")
|
||||
|
||||
site = Site.objects.get_current()
|
||||
site.domain = 'zulip.com'
|
||||
site.domain = settings.EXTERNAL_HOST
|
||||
site.save()
|
||||
|
||||
Reference in New Issue
Block a user