mirror of https://github.com/zulip/zulip.git
generate_zulip_bots_static_files: Write to static, not STATIC_ROOT.
Otherwise the files aren’t processed by collectstatic and don’t end up in the staticfiles.json manifest. Signed-off-by: Anders Kaseorg <andersk@zulipchat.com>
This commit is contained in:
parent
5f712b960f
commit
695b79c5d8
|
@ -11,10 +11,9 @@ def generate_zulip_bots_static_files() -> None:
|
|||
sys.path.append(ZULIP_PATH)
|
||||
|
||||
from typing import List
|
||||
from zproject import settings
|
||||
from zulip_bots.lib import get_bots_directory_path
|
||||
|
||||
bots_dir = os.path.join(settings.STATIC_ROOT, 'generated/bots')
|
||||
bots_dir = 'static/generated/bots'
|
||||
if os.path.isdir(bots_dir):
|
||||
# delete old static files, they could be outdated
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue