First time here? Check out the FAQ!
1

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.

can anybody give me few pointer here?

VikasJ's avatar
21
VikasJ
asked 2013-11-08 09:31:56 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

Evgeny's avatar
13.2k
Evgeny
answered 2013-11-08 09:45:20 -0600, updated 2013-11-08 09:45:49 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments