Ask Your Question
1

Extending askbot's base.html

asked 2013-11-08 09:31:56 -0600

VikasJ gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-11-08 09:45:20 -0600

Evgeny gravatar image

updated 2013-11-08 09:45:49 -0600

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2013-11-08 09:31:56 -0600

Seen: 268 times

Last updated: Nov 08 '13