django-invitations
django-invitations copied to clipboard
How do you customize the email message
I would like to add element of context like the inviter's name. Is this possible?
Override email_invite_message.txt in django-invitations/invitations/templates/invitations/email/.
You can do this by creating the file in the same directory path in your project.
Yeah, if this isn't clear, you can create an .html file in your project at {projectroot}/{app}/templates/invitations/email/email_invite_message.html and it will override the default template.
Yeah, if this isn't clear, you can create an
.htmlfile in your project at{projectroot}/{app}/templates/invitations/email/email_invite_message.htmland it will override the default template.
This worked for me.
Yeah, if this isn't clear, you can create an
.htmlfile in your project at{projectroot}/{app}/templates/invitations/email/email_invite_message.htmland it will override the default template.
What about email subject? Should it be in the same directory? (I have tried with email_invite_subject.txt in the same directory, but no luck)
Yeah, if this isn't clear, you can create an
.htmlfile in your project at{projectroot}/{app}/templates/invitations/email/email_invite_message.htmland it will override the default template.What about email subject? Should it be in the same directory? (I have tried with email_invite_subject.txt in the same directory, but no luck)
It looks like the code isn't as flexible for the templates other than email_invite_message. This may be a good place to start looking.