I want to dynamically change the hostname of the link in the email template, so I created a custom template to handle that. I was hoping to pass the hostname to a custom context processor, which would then populate the email template. Unfortunately this doesn't seem to work, and my guess is that request is not passed into render_to_stringhere.
Is there a workaround (aside from creating multiple versions of the templates) or am I missing something?
I want to dynamically change the hostname of the link in the email template, so I created a custom template to handle that. I was hoping to pass the hostname to a custom context processor, which would then populate the email template. Unfortunately this doesn't seem to work, and my guess is that
request
is not passed intorender_to_string
here.Is there a workaround (aside from creating multiple versions of the templates) or am I missing something?