0

Introduce new variables in settings.py

How can I add new variables and their defaults values to settings.py such that they get created in settings file during the installation time.

example:

show_widget = False
SocialQA's avatar
265
SocialQA
asked 2013-11-12 16:01:19 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

1

Adding variables to the setting template?

You'll need to modify the askbot/setup_templates/settings.mustache so that way when you create a new project your custom values will be on the project's settings.py file.

Fitoria's avatar
1.1k
Fitoria
answered 2013-11-12 16:30:04 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
1

Hello there, if you're asking about the settings that are available at the "settings" link, then have a look at how to create "overrides" for the livesettings django app.

Those actually can be also added to the template Adolfo mentioned.

Evgeny's avatar
13.2k
Evgeny
answered 2013-11-12 16:59:27 -0600, updated 2013-11-12 17:34:37 -0600
edit flag offensive 0 remove flag delete link

Comments

Thanks its good to know about this option too.

SocialQA's avatar SocialQA (2013-11-13 14:54:39 -0600) edit
add a comment see more comments