From f792b670987f7d539868542ad0cc5c44ec482ce4 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 18 Aug 2015 17:33:25 -0700 Subject: [PATCH] Fix send_to_prod redirect to not run on the Dev VM. (imported from commit 6006c71348706d39740b0d6302df0a548e65b65e) --- zerver/views/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/views/__init__.py b/zerver/views/__init__.py index a9e3e0947f..f05b42665b 100644 --- a/zerver/views/__init__.py +++ b/zerver/views/__init__.py @@ -1103,7 +1103,7 @@ def home(request): # Warn users on the zulip.com realm to use staging. send_to_prod = False - if page_params['domain'] == "zulip.com" and page_params['staging']: + if page_params['domain'] == "zulip.com" and settings.STAGING_DEPLOYED: send_to_prod = True dbx_branding = False