I have installed both oscar and mezzanine apps into the same project. I was 
able to see both working when isolated from the other.

oscar requires TEMPLATE_DIRS to have a custom location:

import oscar
TEMPLATE_DIRS = (
    oscar.OSCAR_MAIN_TEMPLATE_DIR,
    os.path.join(PROJECT_ROOT, "templates"),
)

When oscar.OSCAR_MAIN_TEMPLATE_DIR is defined, it stops mezzanine from 
working, because oscar's base template is used for everything. Commenting 
out oscar line, enables mezzanine to work.

I checked and default loader order is:
TEMPLATE_LOADERS = (
    u'django.template.loaders.filesystem.Loader',
)   u'django.template.loaders.app_directories.Loader',
which explains this behavior.

I changed the loader order to:
TEMPLATE_LOADERS = (
    u'django.template.loaders.app_directories.Loader',
    u'django.template.loaders.filesystem.Loader',
)
and that stopped oscar from working, when TEMPLATE_DIRS is defined with 
both lines.

So, I am kind of confused how to address the issue. I know that in the long 
run I 'd like to use only one base.html for the entire site, but in the 
short run I'd like to see both working using their own default templates.


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7b2c4a96-c375-41ff-b661-dfd7a80a4ceb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to