mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 01:53:59 +00:00
settings: Move DEBUG default to default_settings.
This is overridden in the prod_settings_template.py generated by build-release-tarball. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
c45962785c
commit
34b03dcf8a
@@ -10,6 +10,8 @@ if PRODUCTION:
|
|||||||
else:
|
else:
|
||||||
from .dev_settings import EXTERNAL_HOST, ZULIP_ADMINISTRATOR
|
from .dev_settings import EXTERNAL_HOST, ZULIP_ADMINISTRATOR
|
||||||
|
|
||||||
|
DEBUG = DEVELOPMENT
|
||||||
|
|
||||||
# These settings are intended for the server admin to set. We document them in
|
# These settings are intended for the server admin to set. We document them in
|
||||||
# prod_settings_template.py, and in the initial /etc/zulip/settings.py on a new
|
# prod_settings_template.py, and in the initial /etc/zulip/settings.py on a new
|
||||||
# install of the Zulip server.
|
# install of the Zulip server.
|
||||||
|
|||||||
@@ -54,11 +54,6 @@ SERVER_GENERATION = int(time.time())
|
|||||||
ZULIP_ORG_KEY = get_secret("zulip_org_key")
|
ZULIP_ORG_KEY = get_secret("zulip_org_key")
|
||||||
ZULIP_ORG_ID = get_secret("zulip_org_id")
|
ZULIP_ORG_ID = get_secret("zulip_org_id")
|
||||||
|
|
||||||
if 'DEBUG' not in globals():
|
|
||||||
# Uncomment end of next line to test CSS minification.
|
|
||||||
# For webpack JS minification use tools/run_dev.py --minify
|
|
||||||
DEBUG = DEVELOPMENT # and platform.node() != 'your-machine'
|
|
||||||
|
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
INTERNAL_IPS = ('127.0.0.1',)
|
INTERNAL_IPS = ('127.0.0.1',)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user