First time here? Check out the FAQ!
1

Why askbot template base.html has become the default base template?
 

Hi,

can anybody explain this error?

In template /usr/lib/python2.6/site-packages/askbot-0.7.19-py2.6.egg/askbot/skins/default/templates/base.html, error at line 4 Could not parse the remainder: '()' from 'skin.get_extra_css_link()'

I get it when I try to access to search directory of "haystacksearch".

Fabio

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)
Fabio's avatar
48
Fabio
asked 13 years ago

Comments

see more comments

1 Answer

0

Maybe in some page you are using base.html template for some other written in django templating language.

base.html is written in jinja2, a better templating language, which is close to django, but with some differences. Jinja2 is well documented: http://jinja.pocoo.org/docs/.

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 13 years ago
link

Comments

Ok, but this means that askbot has changed my default template engine?
Fabio's avatar Fabio (13 years ago)
Fabio, no django template loaders will load other templates, but mixing templating languages in the same response is not always possible. If you are using standard django templates for something else and want to use askbot's base layout - you may need to re-implement the base template in the other templating language (btw, sorry for being slow in response, I've been travelling this week, and returning over the weekend). I will be happy to take a look at your site - you can either email me the files or let me log in. my email address is evgeny.fadeev@gmail.com.
Evgeny's avatar Evgeny (13 years ago)
see more comments