mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 20:02:15 +00:00
settings: Derive RUNNING_INSIDE_TORNADO based on sys.argv.
This allows it to be used at application startup time.
(cherry picked from commit 169daa31a0)
This commit is contained in:
committed by
Tim Abbott
parent
18b800fbfc
commit
c4d3547ddf
@@ -295,7 +295,9 @@ if not TORNADO_PORTS:
|
||||
TORNADO_PORTS = get_tornado_ports(config_file)
|
||||
TORNADO_PROCESSES = len(TORNADO_PORTS)
|
||||
|
||||
RUNNING_INSIDE_TORNADO = False
|
||||
RUNNING_INSIDE_TORNADO = (
|
||||
len(sys.argv) > 1 and "manage.py" in sys.argv[0] and sys.argv[1] == "runtornado"
|
||||
)
|
||||
|
||||
SILENCED_SYSTEM_CHECKS = [
|
||||
# auth.W004 checks that the UserProfile field named by USERNAME_FIELD has
|
||||
|
||||
Reference in New Issue
Block a user