Extending askbot's base.html

I have recently set-up askbot as a pluggable app for my already existing django website.(wasn't not a trivial task for me, I must say). It's working great!

Now, I want to extend the base.html from my site's base html page(so that it can truly look as a embedded part of website), this template file is residing in project's default temlpate folder but when I try to extend askbot base.html by {% extends "twoColumnPageWithHeader.html" %} it gives me error that template twoColumnPageWithHeader not found.

on a very naive try i have tried to set ASKBOT_EXTRA_SKINS_DIR in my settings file but no luck there.

1 Answer

Create a new directory, set path to that directory with the ASKBOT_EXTRA_SKINS_DIR, inside that directory add a new one with the same name as your custom theme name, therein add directory templates and there add your custom base.html - also it must be a Jinja2 template not Django template.

Path to your customized base template should be something like: skins_dir/skin_name/templates/base.html and skins_dir should be the value of the ASKBOT_EXTRA_SKINS_DIR.