2

Someone has previously asked a question regarding the location of the activation email .txt file for the profile activation email that is sent out when a user registers on an Open edX platform.

I have located these files and made changes. Further, I have manually compiled the assets and restarted the lms, cms, and workers. My problem is that the old email is still sent when a user registers on the platform.

Can anyone help me understand what I need to do to make these changes happen? I've been working on this for a while and, to me, this seems like a straight forward problem. But I don't really understand what is happening, so am having trouble getting the desired output.

4

2 回答 2

1

文本激活电子邮件是 mako 模板,它们在临时位置编译。在您修改后,服务器很可能不会再次编译它们。

尝试清理/tmp/mako_lms/<some_hash>/emails/目录。

/tmp/mako_lms如果您不关心 mako 重新编译所有内容的惩罚,您甚至可以删除其中的所有内容。

一个班轮:

sudo rm /tmp/mako_lms/*/emails/*
于 2017-07-06T08:24:58.317 回答
1

使用最新的平台版本,您只需更改以下文件中的内容:

  1. lms/模板/电子邮件/activation_email_subject.txt
  2. lms/模板/电子邮件/activation_email.txt

没有其他需要,在本地测试。

于 2017-08-08T10:18:08.057 回答