Hi
We've created a custom skin and we're trying to base our skin on templates used elsewhere on our website ie those present in TEMPLATE_DIRS. Is this a bad idea?
It looks like askbot is only looking in the skins directory for templates as it can't find templates in our application. Looking at the SkinEnvironment class in skins/loaders.py, _get_loaders() creates file system loaders for the custom skin directory. We can modify this to append TEMPLATE_DIRS to the loaders and it seems to work. Is there a better way to do what we want? I guess we could use symbolic links from the skin directory to the application templates directory but that seems a bit of a hack.
I suppose ultimately we're looking to embed askbot so that it looks like any of the other pages on our website so tell us if we're going about this the wrong way.
Here's how we solved this problem: [http://blog.aptivate.org/2011/11/15/embedding-jinja2-templates-in-django-templates/]
Please take a look at this document, and please ask if anything is not clear (it was written just two days ago, and still is a bit raw).
http://askbot.org/doc/customizing-skin-in-askbot.html
You'll need to specify ASKBOT_EXTRA_SKINS_DIR and place the custom skin there.
Asked: Jun 14 '11
Seen: 76 times
Last updated: Nov 29 '11
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.