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?

Evgeny's avatar
13.2k
Evgeny
updated 2011-01-05 15:29:40 -0500
Benoit's avatar
875
Benoit
asked 2011-01-05 11:40:57 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment 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.

Evgeny's avatar
13.2k
Evgeny
updated 2011-01-05 15:40:14 -0500, answered 2011-01-05 15:29:28 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments