Ask Your Question
1

how to set {{app_name}} to other than "Askbot"

asked 2013-12-21 10:13:25 -0600

SocialQA gravatar image

Whats the best way we can programmatically set the different value for {{app_name}} we have clearly mentioned in the site that the site is supported by askbot framework but we want to make sure user is not confuse so how can we set our own name.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-12-21 10:49:15 -0600

Evgeny gravatar image

updated 2013-12-21 11:39:22 -0600

In the templates it is {{ settings.APP_SHORT_NAME }}, in Python code:

from askbot.conf import settings as askbot_settings
askbot_settings.APP_SHORT_NAME

This value can be set via the "settings" -> "urls, keywords and greetings" -> "short name for your Q&A forum".

In the future (already works with the code from the github) it will also be possible to set the value via settings.py file:

ASKBOT_APP_SHORT_NAME = 'My Site' #i.e. all settings are just prefixed with ASKBOT_ for the settings.py file.
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

1 follower

Stats

Asked: 2013-12-21 10:13:25 -0600

Seen: 78 times

Last updated: Dec 21 '13