Ask Your Question
1

ability to display askbot version on web page?

asked 2011-01-05 11:40:57 -0600

Benoit gravatar image

updated 2011-01-05 15:29:40 -0600

Evgeny gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-01-05 15:29:28 -0600

Evgeny gravatar image

updated 2011-01-05 15:40:14 -0600

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.

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

Stats

Asked: 2011-01-05 11:40:57 -0600

Seen: 92 times

Last updated: Jan 05 '11