Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
Revert "update-prod-static: Call django.setup during initialization."
Tim Abbotta83a15b7546c
diff --git a/tools/update-prod-static b/tools/update-prod-staticindex b967084c342..6d7816853f5 100755--- a/tools/update-prod-static+++ b/tools/update-prod-static@@ -11,20 +11,18 @@ from scripts.lib.setup_path import setup_pathsetup_path()# check for the venv-from scripts.lib.zulip_tools import assert_not_running_as_root, runfrom tools.lib import sanity_checksanity_check.check_venv(__file__)-assert_not_running_as_root()--import djangoos.environ["DJANGO_SETTINGS_MODULE"] = "zproject.settings"-django.setup()-from django.conf import settingsfrom scripts.lib.node_cache import setup_node_modules+from scripts.lib.zulip_tools import assert_not_running_as_root, run++assert_not_running_as_root()+os.chdir(settings.DEPLOY_ROOT)