Revision history [back]
Unable to integrate a 3rd party app template loader with askbot
I'm trying to integrate django_mobile with my askbot app. But I'm unable to integrate it because django_mobile's custom template_loader is not identified by coffin and is ignored.
It throws this warning UserWarning:
Cannot translate loader: django_mobile.loader.Loader
My TEMPLATE_LOADERS setting is something like this:
TEMPLATE_LOADERS = (
'askbot.skins.loaders.Loader',
'django_mobile.loader.Loader',
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader'
)
I have tried tracing it down and fixing it but haven't yet hit a solution. What I could workout so far is this.
Coffin translates each of the template loader into a corresponding Jinja loader and warns if it can't be translated. This is where the translation is done. Now coffin can't find a suitable translation for 'django_mobile.loader.Loader' as it only translates some specific loaders with jinja_loader_from_django_loader.
What could be done to solve this?
Unable to integrate a 3rd party app template loader with askbot
I'm trying to integrate django_mobile with my askbot app. But I'm unable to integrate it because django_mobile's custom template_loader is not identified by coffin and is ignored.
It throws this warning UserWarning:
Cannot translate loader: django_mobile.loader.Loader
My TEMPLATE_LOADERS setting is something like this:
TEMPLATE_LOADERS = (
'askbot.skins.loaders.Loader',
'django_mobile.loader.Loader',
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader'
'django.template.loaders.app_directories.Loader',
'askbot.skins.loaders.filesystem_load_template_source'
)
I have tried tracing it down and fixing it but haven't yet hit a solution. What I could workout so far is this.
Coffin translates each of the template loader into a corresponding Jinja loader and warns if it can't be translated. This is where the translation is done. Now coffin can't find a suitable translation for 'django_mobile.loader.Loader' as it only translates some specific loaders with jinja_loader_from_django_loader.
What could be done to solve this?
Unable to integrate a 3rd party app template loader with askbot
I'm trying to integrate django_mobile with my askbot app. But I'm unable to integrate it because django_mobile's custom template_loader is not identified by coffin and is ignored.
It throws this warning UserWarning:
Cannot translate loader: django_mobile.loader.Loader
My TEMPLATE_LOADERS setting is something like this:
TEMPLATE_LOADERS = (
'django_mobile.loader.Loader',
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'askbot.skins.loaders.filesystem_load_template_source'
)
I have tried tracing it down and fixing it but haven't yet hit a solution. What I could workout so far is this.
Coffin translates each of the template loader into a corresponding Jinja loader and warns if it can't be translated. This is where the translation is done. Now coffin can't find a suitable translation for 'django_mobile.loader.Loader' as it only translates some specific loaders with jinja_loader_from_django_loader.
What could be done to solve this?