mirror of https://github.com/zulip/zulip.git
Revert "update-prod-static: Call django.setup during initialization."
This reverts commit b6c678cbc4
.
This commit is contained in:
parent
d876e12157
commit
a83a15b754
|
@ -11,20 +11,18 @@ from scripts.lib.setup_path import setup_path
|
|||
setup_path()
|
||||
|
||||
# check for the venv
|
||||
from scripts.lib.zulip_tools import assert_not_running_as_root, run
|
||||
from tools.lib import sanity_check
|
||||
|
||||
sanity_check.check_venv(__file__)
|
||||
assert_not_running_as_root()
|
||||
|
||||
import django
|
||||
|
||||
os.environ["DJANGO_SETTINGS_MODULE"] = "zproject.settings"
|
||||
django.setup()
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
from 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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue