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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
VikasJ's avatar
21
VikasJ
asked 11 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 11 years ago, updated 11 years ago
link

Comments

see more comments