First time here? Check out the FAQ!
1

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

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.

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)
SocialQA's avatar
265
SocialQA
asked 11 years ago

Comments

see more comments

1 Answer

1

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.

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

Comments

see more comments