dev_settings: Add localhost:9991 as realm host for zulip realm.

[greg: Tweaked explanatory comment.]
This commit is contained in:
Vishnu Ks 2017-11-11 20:32:33 +00:00 committed by Greg Price
parent 2d73d3d1d4
commit 8a46ddf9d7
2 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,11 @@ if EXTERNAL_HOST is None:
# For local development environments, we use localhost by
# default, via the "zulipdev.com" hostname.
EXTERNAL_HOST = 'zulipdev.com:9991'
# Serve the main dev realm at the literal name "localhost",
# so it works out of the box even when not on the Internet.
REALM_HOSTS = {
'zulip': 'localhost:9991'
}
ALLOWED_HOSTS = ['*']
# Uncomment extra backends if you want to test with them. Note that

View File

@ -18,6 +18,9 @@ if os.getenv("EXTERNAL_HOST") is None:
os.environ["EXTERNAL_HOST"] = "testserver"
from .settings import *
# Clear out the REALM_HOSTS set in dev_settings.py
REALM_HOSTS = {}
# Used to clone DBs in backend tests.
BACKEND_DATABASE_TEMPLATE = 'zulip_test_template'