Overide default email templates of oscar

82 views
Skip to first unread message

MONICA

unread,
Nov 25, 2014, 1:32:35 AM11/25/14
to django...@googlegroups.com
Hi, 
I have added the email templates in my project folder and made changes to them. The changes worked locally but are not working in production server. I don't understand what is wrong.  Please help

Maik Hoepfel

unread,
Nov 25, 2014, 3:37:45 AM11/25/14
to django...@googlegroups.com

Hi Monica,

That's an interesting one. Did you restart the server and clear the cache? Might be the cause if you're using cached templates on the server. You could share the template loaders setting so others can have a look.
Apart from that, I'd log into a Django console on the server and start poking at the template loader API.

Good luck,

Maik

On 25 Nov 2014 06:32, "MONICA" <monicap...@gmail.com> wrote:
Hi, 
I have added the email templates in my project folder and made changes to them. The changes worked locally but are not working in production server. I don't understand what is wrong.  Please help

--
https://github.com/tangentlabs/django-oscar
http://django-oscar.readthedocs.org/en/latest/
https://twitter.com/django_oscar
---
You received this message because you are subscribed to the Google Groups "django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-oscar.
To view this discussion on the web, visit https://groups.google.com/d/msgid/django-oscar/1a91192d-f041-4d5f-b6e4-357cad686415%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sys socketcall

unread,
Jul 22, 2016, 6:16:21 PM7/22/16
to django-oscar, m...@maikhoepfel.de
Dear Maik,

I ran into the same problem it seems.
When changing my email templates it has no effect on them when I restart nginx/unicorn or rerun it in PyCharm (in development).
Could you tell me how I flush the cache? I did not find any cache table in my sqlite nor postgresql in the production setup.
Where does it cache it then? (I run no memchached)

This is inside my TEMPLATES = [] in settings.
'loaders': [
('django.template.loaders.cached.Loader', [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
]),]

I tried this as described here: https://stackoverflow.com/questions/4071221/resetting-cache-for-django-cached-template-loader
But my loader is missing template_source_loaders.

Best regards
Nikolaj

YusufSalahAdDin

unread,
Aug 15, 2016, 3:30:43 AM8/15/16
to django-oscar
Are there some additional steps for create a custom email template?
Can we integrate django-oscar with django-mailchimp?

Thanks!
Reply all
Reply to author
Forward
0 new messages