Hrrm. Second recommendation would be to change the location where you have your microsite configurations. I always put mine in the Django admin panel Site Configuration>Site Configurations. Never tried putting it in lms.env.json. Not sure if that is one of the issues, but worth a shot....
On Wednesday, May 22, 2019 at 11:40:14 AM UTC-4, Erick Raul Estrada Acosta wrote: > > Thanks for you response, > > It tries to do what it tells me, but it is never found in the microsite > configuration and it ends up having the default configuration. I do not > know how I should do to take the configurations of the microsites try using > the "settings.MICROSITE_CONFIGURATE ['Name_site'] ['Configuration_name']" > and this does work but it is very static and could not be functional for > all my microsites. > > Have a great day. > > > El mié., 22 de may. de 2019 a la(s) 09:16, John Swope (jo...@curricu.me > <javascript:>) escribió: > >> Hi Erick, >> I made a change similar to this, but to take the language of the >> microsite instead of the LMS_ROOT_URL. But I think most of the same theory >> should apply. Basically you find how your email template is pulling in the >> LMS_ROOT_URL, and modify that slightly to use >> configuration_helpers_.get_value(). So you might end up with something that >> looks something like this: >> configuration_helpers.get_value('LMS_ROOT_URL', settings.LMS_ROOT_URL) >> >> Which is saying "get my microsite override for LMS_ROOT_URL, and if you >> can't find it then fall back to my platform LMS_ROOT_URL" >> >> Hopefully that helps a bit! >> John >> >> >> On Monday, May 20, 2019 at 4:27:49 PM UTC-4, Erick Raul Estrada Acosta >> wrote: >>> >>> I am trying to send emails, but I have many microsites, then the mail >>> links take the route of my home page and not the microsite from where it is >>> generated, I found that in the aws.py file it mentions the >>> *LMS_ROOT_URL* >>> <https://gitlab.dlc.ntu.edu.tw/shawnli1109/edx-platform/blob/point-to-dlc/lms/envs/aws.py> >>> >>> of which the links are composed In the *email templates*, try adding >>> this option in the custom settings of each microsite in the >>> *lms.env.json* file, but keep taking the data from the main page and >>> not from the *microsite configuration*. >>> >>> Any idea how I could solve this? >>> >>> *Thanks a lot.* >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "General Open edX discussion" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to edx-...@googlegroups.com <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/edx-code/64922ee0-853e-4e70-a679-8482a6104fc4%40googlegroups.com >> >> <https://groups.google.com/d/msgid/edx-code/64922ee0-853e-4e70-a679-8482a6104fc4%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "General Open edX discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to edx-code+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/470217c7-2ecf-4664-a31c-3329624382f7%40googlegroups.com.