Over-ride default Satchmo email with custom template
I'm using Satchmo for the shop section of a website. I'm trying to override the default 'order_complete' email with my own, but haven't been able to so far. The docs indicate that it should be done in the same way as overriding any other template. So I've created one in my template folder at shop/email/order_compl开发者_如何转开发ete.html, but it isn't being picked up. Anyone have any ideas?
Just a guess but, is Satchmo listed in installed_apps before your own app? (If so the order_complete template may be being matched before yours is ever reached.)
Try moving your app before Satchmo and see if that solves it.
If you want your template folder to take precedence over the app template folders, you have to set your 'django.template.loaders.filesystem.load_template_source',
before the app_directories
loader.
精彩评论