Hey there,
We've been working on customising the askbot skin to fit in with the rest of our site (pythonanywhere.com, if you were getting curious!) and it would be cool to be able to re-use some of our normal django templates, since jinja2 and django are reasonably compatible... eg using {% include %}.
the problem is that askbot/jinja2 looks for its templates in ASKBOT_EXTRA_SKINS_DIR, and our templates are elsewhere. Any ideas?
Hey, ASKBOT_EXTRA_SKINS_DIR should work, but askbot template resolver is expecting that you have a skin directory and inside it a template directory, so you might need to move around some of your templates.
Other than that - when django templates are compatible with Jinja they should just work, otherwise you'd have to duplicate some of the templates, should not be too much work though for the standard header & footer modification.
The reason we switched to Jinja2 is that they are significantly faster and allow arbitrary nesting of includes without losing in performance (that's besides some other improvements).
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2011-11-24 10:24:16 -0500
Seen: 119 times
Last updated: Nov 24 '11
How to perform Template() on askbot setting?
I'm looking at using askbot to develop a Q&A site for health issues, looking for advise
redirect back to askbot after login via own django app
feeds/rss path not appended to askboturl
How to internationalize counts say for Russian in Django?
How to configure Apache to run Django application?
How to customize messages in django applications?
can I run askbot on tornado instead of django
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.