From f98a86cdc210f05bd75764bead98e7a8629db8ef Mon Sep 17 00:00:00 2001 From: Vishnu Ks Date: Wed, 25 Jul 2018 17:04:09 +0530 Subject: [PATCH] billing: Don't show initial upgrade page in production for now. --- zilencer/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zilencer/views.py b/zilencer/views.py index a2ee49dabe..435d5b225c 100644 --- a/zilencer/views.py +++ b/zilencer/views.py @@ -161,6 +161,9 @@ def remote_server_notify_push(request: HttpRequest, entity: Union[UserProfile, R @zulip_login_required def initial_upgrade(request: HttpRequest) -> HttpResponse: + if not settings.DEVELOPMENT: + return render(request, "404.html") + user = request.user error_message = ""