Ask Your Question
1

ability to display askbot version on web page?

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

Benoit gravatar image Benoit flag of United States
865 22 8 31

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

Evgeny gravatar image Evgeny flag of Chile
11044 50 84 182
http://askbot.org/

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?

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

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

Evgeny gravatar image Evgeny flag of Chile
11044 50 84 182
http://askbot.org/

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

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.

link publish delete flag offensive edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 27 times

Last updated: Jan 05 '11