First time here? Check out the FAQ!
1

ability to display askbot version on web page?
 

Is there a way we could use in the footer (or any) template to display what the askbot version is?

I tried using {{ askbot.get_version() }}, but get an exception.

Is there an easy fix?

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
updated 14 years ago
Benoit's avatar
875
Benoit
asked 14 years ago

Comments

see more comments

1 Answer

0

Done. That was because the application variables are not generally accessible in the templates. Django adds them via template context processors (but then you need to use the request context objects) or through the template data from the view functions.

The version shown will be correct if the code is taken from the Python Package index, but may be somewhat misleading it is taken from the repository, not sure how to deal with that yet.

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
updated 14 years ago, answered 14 years ago
link

Comments

see more comments